Go to the source code of this file.
◆ CONNECTION_LISTENER_DEFAULT_MAX_LISTENING_CONNECTION
#define CONNECTION_LISTENER_DEFAULT_MAX_LISTENING_CONNECTION 64 |
◆ CONNECTION_LISTENER_KICK_SOCKET_LISTEN
#define CONNECTION_LISTENER_KICK_SOCKET_LISTEN 0 |
◆ CONNECTION_LISTENER_KICK_SOCKET_WRITE
#define CONNECTION_LISTENER_KICK_SOCKET_WRITE 1 |
◆ CONNECTION_LISTENER_SHUTDOWN_TIMEOUT
#define CONNECTION_LISTENER_SHUTDOWN_TIMEOUT (1000 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND) |
◆ CONNECTION_LISTENER_SOCKET_WAIT_FOR_DATA_TIMEOUT
#define CONNECTION_LISTENER_SOCKET_WAIT_FOR_DATA_TIMEOUT (200 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND) |
◆ PConnectionListener
◆ connectionListenerAddConnection()
add a new PSocketConnection to listen for incoming data
- Parameters
-
- | PConnectionListener - IN - the ConnectionListener struct to use |
- | PSocketConnection - IN - new PSocketConnection to listen for incoming data |
- Returns
- - STATUS status of execution
◆ connectionListenerReceiveDataRoutine()
PVOID connectionListenerReceiveDataRoutine |
( |
PVOID |
arg | ) |
|
◆ connectionListenerRemoveAllConnection()
remove all listening PSocketConnection
- Parameters
-
- Returns
- - STATUS status of execution
◆ connectionListenerRemoveConnection()
remove PSocketConnection from the list to listen for incoming data
- Parameters
-
- | PConnectionListener - IN - the ConnectionListener struct to use |
- | PSocketConnection - IN - PSocketConnection to be removed |
- Returns
- - STATUS status of execution
◆ connectionListenerStart()
Spin off a listener thread that listen for incoming traffic for all PSocketConnection stored in connectionList. Whenever a PSocketConnection receives data, invoke ConnectionDataAvailableFunc passed in.
- Parameters
-
- Returns
- - STATUS status of execution
◆ createConnectionListener()
allocate the ConnectionListener struct
- Parameters
-
- | PConnectionListener* - IN/OUT - pointer to PConnectionListener being allocated |
- Returns
- - STATUS status of execution
◆ freeConnectionListener()
free the ConnectionListener struct and all its resources
- Parameters
-
- | PConnectionListener* - IN/OUT - pointer to PConnectionListener being freed |
- Returns
- - STATUS status of execution