discard.h File Reference

Discard protocol. More...

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

Go to the source code of this file.

Data Structures

struct  DiscardServiceContext
 Discard service context. More...
 

Macros

#define DISCARD_SERVICE_STACK_SIZE   600
 
#define DISCARD_SERVICE_PRIORITY   OS_TASK_PRIORITY_NORMAL
 
#define DISCARD_BUFFER_SIZE   1500
 
#define DISCARD_TIMEOUT   20000
 
#define DISCARD_PORT   9
 

Functions

error_t tcpDiscardStart (void)
 Start TCP discard service. More...
 
void tcpDiscardListenerTask (void *param)
 Task handling connection requests. More...
 
void tcpDiscardConnectionTask (void *param)
 TCP discard service implementation. More...
 
error_t udpDiscardStart (void)
 Start UDP discard service. More...
 
void udpDiscardTask (void *param)
 UDP discard service implementation. More...
 

Detailed Description

Discard 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 discard.h.

Macro Definition Documentation

◆ DISCARD_BUFFER_SIZE

#define DISCARD_BUFFER_SIZE   1500

Definition at line 50 of file discard.h.

◆ DISCARD_PORT

#define DISCARD_PORT   9

Definition at line 63 of file discard.h.

◆ DISCARD_SERVICE_PRIORITY

#define DISCARD_SERVICE_PRIORITY   OS_TASK_PRIORITY_NORMAL

Definition at line 45 of file discard.h.

◆ DISCARD_SERVICE_STACK_SIZE

#define DISCARD_SERVICE_STACK_SIZE   600

Definition at line 38 of file discard.h.

◆ DISCARD_TIMEOUT

#define DISCARD_TIMEOUT   20000

Definition at line 57 of file discard.h.

Function Documentation

◆ tcpDiscardConnectionTask()

void tcpDiscardConnectionTask ( void *  param)

TCP discard service implementation.

Parameters
[in]paramPointer to the discard service context

Definition at line 184 of file discard.c.

◆ tcpDiscardListenerTask()

void tcpDiscardListenerTask ( void *  param)

Task handling connection requests.

Parameters
[in]paramPointer to the discard service context

Definition at line 110 of file discard.c.

◆ tcpDiscardStart()

error_t tcpDiscardStart ( void  )

Start TCP discard service.

Returns
Error code

Definition at line 48 of file discard.c.

◆ udpDiscardStart()

error_t udpDiscardStart ( void  )

Start UDP discard service.

Returns
Error code

Definition at line 242 of file discard.c.

◆ udpDiscardTask()

void udpDiscardTask ( void *  param)

UDP discard service implementation.

Parameters
[in]paramPointer to the discard service context

Definition at line 311 of file discard.c.