23#ifndef _RTP_INTERFACE_HH
24#define _RTP_INTERFACE_HH
39 unsigned& packetSize);
65 unsigned& bytesRead,
struct sockaddr_storage& fromAddress,
66 int& tcpSocketNum,
unsigned char& tcpStreamChannelId,
67 Boolean& packetReadWasIncomplete);
80 void* handlerClientData) {
93 int socketNum,
unsigned char streamChannelId,
96 u_int8_t
const* data,
unsigned dataSize,
Boolean forceSendToSucceed);
void AuxHandlerFunc(void *clientData, unsigned char *packet, unsigned &packetSize)
void ServerRequestAlternativeByteHandler(void *instance, u_int8_t requestByte)
UsageEnvironment & envir() const
void removeStreamSocket(int sockNum, unsigned char streamChannelId)
Boolean handleRead(unsigned char *buffer, unsigned bufferMaxSize, unsigned &bytesRead, struct sockaddr_storage &fromAddress, int &tcpSocketNum, unsigned char &tcpStreamChannelId, Boolean &packetReadWasIncomplete)
AuxHandlerFunc * fAuxReadHandlerFunc
void setStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
unsigned char fNextTCPReadStreamChannelId
void stopNetworkReading()
int fNextTCPReadStreamSocketNum
TaskScheduler::BackgroundHandlerProc * fReadHandlerProc
static void clearServerRequestAlternativeByteHandler(UsageEnvironment &env, int socketNum)
unsigned short fNextTCPReadSize
void addStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
void startNetworkReading(TaskScheduler::BackgroundHandlerProc *handlerProc)
Boolean sendRTPorRTCPPacketOverTCP(unsigned char *packet, unsigned packetSize, int socketNum, unsigned char streamChannelId, TLSState *tlsState)
TLSState * fNextTCPReadTLSState
void forgetOurGroupsock()
RTPInterface(Medium *owner, Groupsock *gs)
Boolean sendPacket(unsigned char *packet, unsigned packetSize)
void setAuxilliaryReadHandler(AuxHandlerFunc *handlerFunc, void *handlerClientData)
class tcpStreamRecord * fTCPStreams
friend class SocketDescriptor
UsageEnvironment & envir() const
static void setServerRequestAlternativeByteHandler(UsageEnvironment &env, int socketNum, ServerRequestAlternativeByteHandler *handler, void *clientData)
void * fAuxReadHandlerClientData
Boolean sendDataOverTCP(int socketNum, TLSState *tlsState, u_int8_t const *data, unsigned dataSize, Boolean forceSendToSucceed)
void BackgroundHandlerProc(void *clientData, int mask)