mikroSDK Reference Manual
echo_server_misc.h
Go to the documentation of this file.
1
31#ifndef _ECHO_SERVER_MISC_H
32#define _ECHO_SERVER_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "echo/echo_server.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//Echo server related functions
44void echoServerTick(EchoServerContext *context);
45
46void echoServerAcceptTcpConnection(EchoServerContext *context);
47
48void echoServerRegisterTcpConnectionEvents(EchoTcpConnection *connection,
49 SocketEventDesc *eventDesc);
50
51void echoServerProcessTcpConnectionEvents(EchoTcpConnection *connection);
52void echoServerCloseTcpConnection(EchoTcpConnection *connection);
53
54void echoServerProcessUdpDatagram(EchoServerContext *context);
55
56//C++ guard
57#ifdef __cplusplus
58}
59#endif
60
61#endif
Echo server.
TCP/IP stack core.
Echo server context.
Definition echo_server.h:162
Echo TCP connection.
Definition echo_server.h:147
Structure describing socket events.
Definition socket.h:395