#include "../Include_i.h"
Macros | |
| #define | LOG_CLASS "ConnectionListener" |
Functions | |
| STATUS | createConnectionListener (PConnectionListener *ppConnectionListener) |
| STATUS | freeConnectionListener (PConnectionListener *ppConnectionListener) |
| STATUS | connectionListenerAddConnection (PConnectionListener pConnectionListener, PSocketConnection pSocketConnection) |
| STATUS | connectionListenerRemoveConnection (PConnectionListener pConnectionListener, PSocketConnection pSocketConnection) |
| STATUS | connectionListenerRemoveAllConnection (PConnectionListener pConnectionListener) |
| STATUS | connectionListenerStart (PConnectionListener pConnectionListener) |
| BOOL | canReadFd (INT32 fd, struct pollfd *fds, INT32 nfds) |
| PVOID | connectionListenerReceiveDataRoutine (PVOID arg) |
| #define LOG_CLASS "ConnectionListener" |
Kinesis Video Producer ConnectionListener
| BOOL canReadFd | ( | INT32 | fd, |
| struct pollfd * | fds, | ||
| INT32 | nfds ) |

| STATUS connectionListenerAddConnection | ( | PConnectionListener | pConnectionListener, |
| PSocketConnection | pSocketConnection ) |
add a new PSocketConnection to listen for incoming data
| - | PConnectionListener - IN - the ConnectionListener struct to use |
| - | PSocketConnection - IN - new PSocketConnection to listen for incoming data |

| PVOID connectionListenerReceiveDataRoutine | ( | PVOID | arg | ) |


| STATUS connectionListenerRemoveAllConnection | ( | PConnectionListener | pConnectionListener | ) |
remove all listening PSocketConnection
| - | PConnectionListener - IN - the ConnectionListener struct to use |


| STATUS connectionListenerRemoveConnection | ( | PConnectionListener | pConnectionListener, |
| PSocketConnection | pSocketConnection ) |
remove PSocketConnection from the list to listen for incoming data
| - | PConnectionListener - IN - the ConnectionListener struct to use |
| - | PSocketConnection - IN - PSocketConnection to be removed |


| STATUS connectionListenerStart | ( | PConnectionListener | pConnectionListener | ) |
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.
| - | PConnectionListener - IN - the ConnectionListener struct to use |


| STATUS createConnectionListener | ( | PConnectionListener * | ppConnectionListener | ) |
allocate the ConnectionListener struct
| - | PConnectionListener* - IN/OUT - pointer to PConnectionListener being allocated |


| STATUS freeConnectionListener | ( | PConnectionListener * | ppConnectionListener | ) |
free the ConnectionListener struct and all its resources
| - | PConnectionListener* - IN/OUT - pointer to PConnectionListener being freed |

