|
|
knFlags | flags |
| | The flags given at creation.
|
|
knBool | running |
| | Is the server running.
|
|
knSocket | fd |
| | The fd of the server socket.
|
|
knAddr | addr |
| | The address of the server (:: when dual-stack).
|
|
knPool | pool |
| | The pool of sockets to look on.
|
|
void * | user_ptr |
| | Data like a struct given by the user.
|
|
knServer_OnConnect_t | onConnection |
| | onConnection callback
|
|
knServer_OnRead_t | onRead |
| | onRead callback
|
|
knServer_OnWrite_t | onWrite |
| | onWrite callback
|
|
knServer_OnDisconnect_t | onDisconnect |
| | onDisconnect callback
|
|
char | ip [INET6_ADDRSTRLEN] |
| | The ip as a string.
|
|
knLoggerData | logger |
| | The logger data.
|
|
uint64_t | connection_timeout |
| | The max seconds the connections can rest withoud sending data (default: UDP = 30,000, TCP = 180,000).
|
|
union { | |
|
struct { | |
|
knMap * connections | |
| | The hashmap that contains knConnections.
|
| } on_udp |
| | Specific on UDP.
|
| }; | |
| | The union to switch between protocols.
|
|
knServer_onPollinHook | onPollinHook |
| | on pollin hook
|
|
knServer_onPolloutHook | onPolloutHook |
| | on pollout hook
|
|
knServer_onCleanupHook | onCleanupHook |
| | on cleanup hook
|
|
knServer_onDestructionHook | onDestroyHook |
| | on destruction hook
|
The documentation for this struct was generated from the following file: