#include <TCPSocket.h>
Public Member Functions | |
| CTCPSocket * | Accept (unsigned char *ip=0) |
| void | Close () |
| CTCPSocket () | |
| bool | IsOpen () const |
| bool | Listen (const unsigned char *ip=0, int port=0) |
| bool | Open (const unsigned char *ip, int port) |
| int | Recv (void *pData, int nMaxBytes, bool bWait=false) |
| bool | Send (const void *pData, int nBytes) |
| ~CTCPSocket () | |
Private Attributes | |
| bool | m_bListening |
| int | m_socket |
Definition at line 48 of file TCPSocket.h.
Definition at line 108 of file TCPSocket.cpp.
Definition at line 115 of file TCPSocket.cpp.
| CTCPSocket * CTCPSocket::Accept | ( | unsigned char * | ip = 0 | ) |
Definition at line 302 of file TCPSocket.cpp.
Definition at line 615 of file TCPSocket.cpp.
| bool CTCPSocket::IsOpen | ( | ) | const [inline] |
Definition at line 69 of file TCPSocket.h.
| bool CTCPSocket::Listen | ( | const unsigned char * | ip = 0, |
| int | port = 0 |
||
| ) |
Definition at line 124 of file TCPSocket.cpp.
| bool CTCPSocket::Open | ( | const unsigned char * | ip, |
| int | port | ||
| ) |
Definition at line 464 of file TCPSocket.cpp.
| int CTCPSocket::Recv | ( | void * | pData, |
| int | nMaxBytes, | ||
| bool | bWait = false |
||
| ) |
Definition at line 716 of file TCPSocket.cpp.
| bool CTCPSocket::Send | ( | const void * | pData, |
| int | nBytes | ||
| ) |
Definition at line 640 of file TCPSocket.cpp.
bool CTCPSocket::m_bListening [private] |
Definition at line 90 of file TCPSocket.h.
int CTCPSocket::m_socket [private] |
Definition at line 89 of file TCPSocket.h.