|
Mixe for Privacy and Anonymity in the Internet
|
#include <CADatagramSocket.hpp>
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 |
Definition at line 33 of file CADatagramSocket.hpp.
| CADatagramSocket::CADatagramSocket | ( | ) |
|
inline |
Definition at line 37 of file CADatagramSocket.hpp.
References close().
| SINT32 CADatagramSocket::bind | ( | CASocketAddr & | psa | ) |
Definition at line 86 of file CADatagramSocket.cpp.
References create(), E_SUCCESS, CASocketAddr::getSize(), CASocketAddr::getType(), CASocketAddr::LPSOCKADDR(), m_Socket, and SOCKET_ERROR.
Referenced by bind().
Definition at line 96 of file CADatagramSocket.cpp.
References bind().
| SINT32 CADatagramSocket::close | ( | ) |
Definition at line 60 of file CADatagramSocket.cpp.
References closesocket, m_Socket, and SOCKET_ERROR.
Referenced by ~CADatagramSocket().
| SINT32 CADatagramSocket::create | ( | ) |
Definition at line 44 of file CADatagramSocket.cpp.
Referenced by bind().
| SINT32 CADatagramSocket::create | ( | int | type | ) |
Definition at line 50 of file CADatagramSocket.cpp.
References E_SUCCESS, INVALID_SOCKET, m_Socket, SOCKET_ERROR, and type.
|
inline |
| SINT32 CADatagramSocket::receive | ( | UINT8 * | buff, |
| UINT32 | len, | ||
| CASocketAddr * | from | ||
| ) |
Definition at line 110 of file CADatagramSocket.cpp.
References CASocketAddr::getSize(), len, CASocketAddr::LPSOCKADDR(), m_Socket, and MSG_NOSIGNAL.
| SINT32 CADatagramSocket::send | ( | UINT8 * | buff, |
| UINT32 | len, | ||
| CASocketAddr & | to | ||
| ) |
Definition at line 102 of file CADatagramSocket.cpp.
References E_SUCCESS, E_UNKNOWN, CASocketAddr::getSize(), len, CASocketAddr::LPSOCKADDR(), m_Socket, MSG_NOSIGNAL, and SOCKET_ERROR.
|
private |
Definition at line 56 of file CADatagramSocket.hpp.
Referenced by bind(), CADatagramSocket(), close(), create(), getSocket(), receive(), and send().