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
40
extern
"C"
{
41
#endif
42
43
//Echo server related functions
44
void
echoServerTick(
EchoServerContext
*context);
45
46
void
echoServerAcceptTcpConnection(
EchoServerContext
*context);
47
48
void
echoServerRegisterTcpConnectionEvents(
EchoTcpConnection
*connection,
49
SocketEventDesc
*eventDesc);
50
51
void
echoServerProcessTcpConnectionEvents(
EchoTcpConnection
*connection);
52
void
echoServerCloseTcpConnection(
EchoTcpConnection
*connection);
53
54
void
echoServerProcessUdpDatagram(
EchoServerContext
*context);
55
56
//C++ guard
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
echo_server.h
Echo server.
net.h
TCP/IP stack core.
EchoServerContext
Echo server context.
Definition
echo_server.h:162
EchoTcpConnection
Echo TCP connection.
Definition
echo_server.h:147
SocketEventDesc
Structure describing socket events.
Definition
socket.h:395