IVT
CTCPSocket Class Reference

#include <TCPSocket.h>

Public Member Functions

 CTCPSocket ()
 
 ~CTCPSocket ()
 
bool Listen (const unsigned char *ip=0, int port=0)
 
CTCPSocketAccept (unsigned char *ip=0)
 
bool IsOpen () const
 
bool Open (const unsigned char *ip, int port)
 
void Close ()
 
bool Send (const void *pData, int nBytes)
 
int Recv (void *pData, int nMaxBytes, bool bWait=false)
 

Detailed Description

Definition at line 48 of file TCPSocket.h.

Constructor & Destructor Documentation

CTCPSocket::CTCPSocket ( )

Definition at line 108 of file TCPSocket.cpp.

CTCPSocket::~CTCPSocket ( )

Definition at line 115 of file TCPSocket.cpp.

Member Function Documentation

CTCPSocket * CTCPSocket::Accept ( unsigned char *  ip = 0)

Definition at line 302 of file TCPSocket.cpp.

void CTCPSocket::Close ( )

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.


The documentation for this class was generated from the following files: