Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Private Attributes | List of all members
CADatagramSocket Class Reference

Public Member Functions

 CADatagramSocket ()
 
 ~CADatagramSocket ()
 
SINT32 create ()
 
SINT32 create (int type)
 
SINT32 close ()
 
SINT32 bind (CASocketAddr &psa)
 
SINT32 bind (UINT16 port)
 
SINT32 send (UINT8 *buff, UINT32 len, CASocketAddr &to)
 
SINT32 receive (UINT8 *buff, UINT32 len, CASocketAddr *from)
 
SOCKET getSocket ()
 

Private Attributes

SOCKET m_Socket
 

Constructor & Destructor Documentation

◆ CADatagramSocket()

CADatagramSocket::CADatagramSocket ( )

References m_Socket.

◆ ~CADatagramSocket()

CADatagramSocket::~CADatagramSocket ( )

References bind(), close(), create(), len, receive(), send(), and type.

Member Function Documentation

◆ bind() [1/2]

SINT32 CADatagramSocket::bind ( CASocketAddr psa)

◆ bind() [2/2]

SINT32 CADatagramSocket::bind ( UINT16  port)

References bind().

◆ close()

SINT32 CADatagramSocket::close ( )

References closesocket, m_Socket, and SOCKET_ERROR.

Referenced by ~CADatagramSocket().

◆ create() [1/2]

SINT32 CADatagramSocket::create ( )

Referenced by bind(), and ~CADatagramSocket().

◆ create() [2/2]

SINT32 CADatagramSocket::create ( int  type)

◆ getSocket()

SOCKET CADatagramSocket::getSocket ( )

References m_Socket.

◆ receive()

SINT32 CADatagramSocket::receive ( UINT8 buff,
UINT32  len,
CASocketAddr from 
)

◆ send()

SINT32 CADatagramSocket::send ( UINT8 buff,
UINT32  len,
CASocketAddr to 
)

Member Data Documentation

◆ m_Socket

SOCKET CADatagramSocket::m_Socket
private