29 #ifndef __CAMUXSOCKET__
30 #define __CAMUXSOCKET__
#define CASymCipherMuxSocket
SYMCHANNELCIPHER_ALGORITHM
SINT32 receiveFully(UINT8 *buff, UINT32 len)
Receives all len bytes.
SINT32 close()
Closes the underlying socket.
SINT32 accept(UINT16 port)
SINT32 receive(MIXPACKET *pPacket)
Receives a whole MixPacket.
SINT32 connect(CASocketAddr &psa)
static t_hashkeylistEntry * ms_phashkeylistAvailableHashKeys
SINT32 setSendKey(UINT8 *key, UINT32 keyLen)
CASymCipherMuxSocket * m_pCipherOut
SINT32 setReceiveKey(UINT8 *key, UINT32 keyLen)
SINT32 send(MIXPACKET *pPacket)
Sends a MixPacket over the Network.
SINT32 setKey(UINT8 *key, UINT32 keyLen)
Sets the symmetric keys used for de-/encrypting the Mux connection.
SINT32 getHashKey()
Returns a Hashkey which uniquely identifies this socket.
CASymCipherMuxSocket * m_pCipherIn
SINT32 setCASocket(CASocket *pSocket)
This will set the underlying CASocket.
SINT32 receiveFully(UINT8 *buff, UINT32 len)
Receives some "plain" bytes from the underlying socket - just a convenient function....
static CAMutex * ms_pcsHashKeyList
SINT32 prepareForSend(MIXPACKET *inoutPacket)
SINT32 setCipher(SYMCHANNELCIPHER_ALGORITHM algCipher)
static SINT32 ms_nMaxHashKeyValue
t_hashkeylistEntry * m_pHashKeyEntry
CAMuxSocket(SYMCHANNELCIPHER_ALGORITHM algCipher)
SINT32 receiveFully(UINT8 *buff, UINT32 len, UINT32 msTimeOut)
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CA...
SOCKET getSocket()
Returns the number of the Socket used.
virtual SINT32 receiveFullyT(UINT8 *buff, UINT32 len, UINT32 msTimeOut)
Trys to receive all bytes.
struct __t_hash_key_entry__ * next