KronkNet 1.0
Loading...
Searching...
No Matches
kronknet_connection_s Struct Reference
Collaboration diagram for kronknet_connection_s:

Public Attributes

knBool disconnected
 Is disconnected ?
knSocket fd
 The fd of the client (or the server in UDP mode).
knFlags flags
 The flags.
size_t id
 The id of the connection ( !same as fd ).
knAddr addr
 The actual addr.
knPort port
 The port using by the connection.
char ip [INET6_ADDRSTRLEN]
 The well-formated ip adrr.
uint64_t last_data
 The last time (ms).
void * user_ptr
 The user datas (eg User struct ...).
knRBuff * out_buff
 The out buffer.
knConnection_sendHook sendHook
 The send hook.
knPoller * poller
 The poller of the server pool.
knConnection * udp_next
 UDP: the next connection whose address has the same key (see knServer_udpFind).

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