Amazon Kinesis Webrtc C SDK
ConnectionListener.c File Reference
#include "../Include_i.h"
Include dependency graph for ConnectionListener.c:

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)
 

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "ConnectionListener"

Kinesis Video Producer ConnectionListener

Function Documentation

◆ canReadFd()

BOOL canReadFd ( INT32  fd,
struct pollfd *  fds,
INT32  nfds 
)
Here is the caller graph for this function:

◆ connectionListenerAddConnection()

STATUS connectionListenerAddConnection ( PConnectionListener  pConnectionListener,
PSocketConnection  pSocketConnection 
)

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
Here is the caller graph for this function:

◆ connectionListenerReceiveDataRoutine()

PVOID connectionListenerReceiveDataRoutine ( PVOID  arg)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectionListenerRemoveAllConnection()

STATUS connectionListenerRemoveAllConnection ( PConnectionListener  pConnectionListener)

remove all listening PSocketConnection

Parameters
-PConnectionListener - IN - the ConnectionListener struct to use
Returns
- STATUS status of execution
Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectionListenerRemoveConnection()

STATUS connectionListenerRemoveConnection ( PConnectionListener  pConnectionListener,
PSocketConnection  pSocketConnection 
)

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectionListenerStart()

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.

Parameters
-PConnectionListener - IN - the ConnectionListener struct to use
Returns
- STATUS status of execution
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createConnectionListener()

STATUS createConnectionListener ( PConnectionListener ppConnectionListener)

allocate the ConnectionListener struct

Parameters
-PConnectionListener* - IN/OUT - pointer to PConnectionListener being allocated
Returns
- STATUS status of execution
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeConnectionListener()

STATUS freeConnectionListener ( PConnectionListener ppConnectionListener)

free the ConnectionListener struct and all its resources

Parameters
-PConnectionListener* - IN/OUT - pointer to PConnectionListener being freed
Returns
- STATUS status of execution
Here is the call graph for this function:
Here is the caller graph for this function: