Public Member Functions | Private Attributes | List of all members
CTCPSocket Class Reference

#include <TCPSocket.h>

Public Member Functions

CTCPSocketAccept (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
 

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.

Member Data Documentation

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.


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


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28