echo_server_misc.h File Reference

Helper functions for Echo server. More...

#include "core/net.h"
#include "echo/echo_server.h"

Go to the source code of this file.

Functions

void echoServerTick (EchoServerContext *context)
 Handle periodic operations. More...
 
void echoServerAcceptTcpConnection (EchoServerContext *context)
 Accept connection request. More...
 
void echoServerRegisterTcpConnectionEvents (EchoTcpConnection *connection, SocketEventDesc *eventDesc)
 Register TCP connection events. More...
 
void echoServerProcessTcpConnectionEvents (EchoTcpConnection *connection)
 Connection event handler. More...
 
void echoServerCloseTcpConnection (EchoTcpConnection *connection)
 Close TCP connection. More...
 
void echoServerProcessUdpDatagram (EchoServerContext *context)
 Process incoming UDP datagram. More...
 

Detailed Description

Helper functions for Echo server.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 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
2.4.0

Definition in file echo_server_misc.h.

Function Documentation

◆ echoServerAcceptTcpConnection()

void echoServerAcceptTcpConnection ( EchoServerContext context)

Accept connection request.

Parameters
[in]contextPointer to the Echo server context

Definition at line 87 of file echo_server_misc.c.

◆ echoServerCloseTcpConnection()

void echoServerCloseTcpConnection ( EchoTcpConnection connection)

Close TCP connection.

Parameters
[in]connectionPointer to the TCP connection

Definition at line 250 of file echo_server_misc.c.

◆ echoServerProcessTcpConnectionEvents()

void echoServerProcessTcpConnectionEvents ( EchoTcpConnection connection)

Connection event handler.

Parameters
[in]connectionPointer to the TCP connection

Definition at line 187 of file echo_server_misc.c.

◆ echoServerProcessUdpDatagram()

void echoServerProcessUdpDatagram ( EchoServerContext context)

Process incoming UDP datagram.

Parameters
[in]contextPointer to the Echo server context

Definition at line 269 of file echo_server_misc.c.

◆ echoServerRegisterTcpConnectionEvents()

void echoServerRegisterTcpConnectionEvents ( EchoTcpConnection connection,
SocketEventDesc eventDesc 
)

Register TCP connection events.

Parameters
[in]connectionPointer to the TCP connection
[in]eventDescSocket events to be registered

Definition at line 159 of file echo_server_misc.c.

◆ echoServerTick()

void echoServerTick ( EchoServerContext context)

Handle periodic operations.

Parameters
[in]contextPointer to the Echo server context

Definition at line 49 of file echo_server_misc.c.