30 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_LAST_MIX
36 if(pControlChannel==NULL||pControlChannel->
getID()>255)
74 if (pControlChannel != NULL)
102 memcpy(out,in,inlen);
122 memcpy(out,in,inlen);
The base of each control channel.
virtual SINT32 proccessMessage(const UINT8 *msg, UINT32 msglen)=0
Processes some bytes of a message we got from the communication channel.
UINT32 getID() const
Returns the id of this control channel.
SINT32 setDispatcher(CAControlChannelDispatcher *pDispatcher)
Sets the Dispatcher.
void deleteAllControlChannels(void)
Deregisters all control channels and calls delete on every registered control channel object.
gcm_ctx_64k * m_pGCMCtxDec
CAAbstractControlChannel ** m_arControlChannels
SINT32 removeControlChannel(UINT32 id)
SINT32 decryptMessage(const UINT8 *in, UINT32 inlen, UINT8 *out, UINT32 *outlen)
Decrypts a control channel message, which has to be of form: cipher text auth tag - 16 bytes.
CAMutex * m_pcsRegisterChannel
SINT32 registerControlChannel(CAAbstractControlChannel *pControlChannel)
Registers a control channel for receiving messages.
SINT32 sendMessages(UINT32 id, const UINT8 *msg, UINT32 msglen)
SINT32 encryptMessage(const UINT8 *in, UINT32 inlen, UINT8 *out, UINT32 *outlen)
Encrypts a control channel message.
gcm_ctx_64k * m_pGCMCtxEnc
tQueueEntry * m_pQueueEntry
bool proccessMixPacket(const MIXPACKET *pPacket)
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
SINT32 add(const void *buff, UINT32 size)
Adds data to the Queue.