KronkNet 1.0
Loading...
Searching...
No Matches
kronknet_client_s Struct Reference

Client structure, containing necessary data to the client: fd, data. More...

#include <client.h>

Collaboration diagram for kronknet_client_s:

Public Attributes

knFlags flags
 The flags of the client.
knBool running
 Is the client running ??
knSocket fd
 The file descriptor of the client.
void * user_ptr
 The user data ?
knRBuff * buff
 The out buffer (when send is not possible).
uint32_t events
 The events (KN_POLL*).
knAddr addr
 The address of the server.
knClient_OnConnect_t onConnection
 The callback when the client is connected.
knClient_OnRead_t onRead
 The callback when the client receive data.
knClient_OnWrite_t onWrite
 The callback when the client has drained his internal buffer.
knClient_OnDisconnect_t onDisconnect
 The callback when the client disconnect.
knLoggerData logger
 The logger context.

Detailed Description

Client structure, containing necessary data to the client: fd, data.


The documentation for this struct was generated from the following file: