chargen.h File Reference

Character generator protocol. More...

#include "core/net.h"
#include "core/socket.h"

Go to the source code of this file.

Data Structures

struct  ChargenServiceContext
 Chargen service context. More...
 

Macros

#define CHARGEN_SERVICE_STACK_SIZE   600
 
#define CHARGEN_SERVICE_PRIORITY   OS_TASK_PRIORITY_NORMAL
 
#define CHARGEN_BUFFER_SIZE   1500
 
#define CHARGEN_TIMEOUT   20000
 
#define CHARGEN_PORT   19
 

Functions

error_t tcpChargenStart (void)
 Start TCP chargen service. More...
 
void tcpChargenListenerTask (void *param)
 Task handling connection requests. More...
 
void tcpChargenConnectionTask (void *param)
 TCP chargen service implementation. More...
 
error_t udpChargenStart (void)
 Start UDP chargen service. More...
 
void udpChargenTask (void *param)
 UDP chargen service implementation. More...
 

Detailed Description

Character generator protocol.

License

Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file chargen.h.

Macro Definition Documentation

◆ CHARGEN_BUFFER_SIZE

#define CHARGEN_BUFFER_SIZE   1500

Definition at line 50 of file chargen.h.

◆ CHARGEN_PORT

#define CHARGEN_PORT   19

Definition at line 63 of file chargen.h.

◆ CHARGEN_SERVICE_PRIORITY

#define CHARGEN_SERVICE_PRIORITY   OS_TASK_PRIORITY_NORMAL

Definition at line 45 of file chargen.h.

◆ CHARGEN_SERVICE_STACK_SIZE

#define CHARGEN_SERVICE_STACK_SIZE   600

Definition at line 38 of file chargen.h.

◆ CHARGEN_TIMEOUT

#define CHARGEN_TIMEOUT   20000

Definition at line 57 of file chargen.h.

Function Documentation

◆ tcpChargenConnectionTask()

void tcpChargenConnectionTask ( void *  param)

TCP chargen service implementation.

Parameters
[in]paramPointer to the chargen service context

Definition at line 200 of file chargen.c.

◆ tcpChargenListenerTask()

void tcpChargenListenerTask ( void *  param)

Task handling connection requests.

Parameters
[in]paramPointer to the chargen service context

Definition at line 126 of file chargen.c.

◆ tcpChargenStart()

error_t tcpChargenStart ( void  )

Start TCP chargen service.

Returns
Error code

Definition at line 64 of file chargen.c.

◆ udpChargenStart()

error_t udpChargenStart ( void  )

Start UDP chargen service.

Returns
Error code

Definition at line 277 of file chargen.c.

◆ udpChargenTask()

void udpChargenTask ( void *  param)

UDP chargen service implementation.

Parameters
[in]paramPointer to the chargen service context

Definition at line 346 of file chargen.c.