discard.c File Reference

Discard protocol. More...

#include "core/net.h"
#include "std_services/discard.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   STD_SERVICES_TRACE_LEVEL
 

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.

Description

The discard service is a useful debugging and measurement tool. The service simply throws away any data it receives. Refer to RFC 863 for complete details

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

Definition in file discard.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   STD_SERVICES_TRACE_LEVEL

Definition at line 35 of file discard.c.

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.