Data Structures | |
| struct | connection_s |
Typedefs | |
| typedef struct connection_s | connection_t |
Functions | |
| connection_t * | Connection_Add (netadr_t *address, void *object, void(*handler)(connection_t *, void *)) |
| Add a new connection. More... | |
| void | Connection_Del (connection_t *con) |
| Delete a connection. More... | |
| connection_t * | Connection_Find (netadr_t *address) |
| Search for an established connection based on the remote address. More... | |
| void | Connection_Init (void) |
| Initialize the connection management system. More... | |
| typedef struct connection_s connection_t |
| connection_t* Connection_Add | ( | netadr_t * | address, |
| void * | object, | ||
| void(*)(connection_t *, void *) | handler | ||
| ) |
Add a new connection.
| address | The address of the remote end. |
| object | Connection specific data. Will be passed to handler. |
| handler | Callback for handling incoming packets. connection_t::handler |
| void Connection_Del | ( | connection_t * | con | ) |
Delete a connection.
| con | The connection to be deleted. |
| connection_t* Connection_Find | ( | netadr_t * | address | ) |
Search for an established connection based on the remote address.
| address | The remote address. |
| void Connection_Init | ( | void | ) |
Initialize the connection management system.