Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippSocketImp Class Reference

List of all members.

Public Member Functions

 ippSocketImp ()
ippSocket::SERROR SetNonBlocking ()
 mark the socket as being a non blocking socket.
ippSocket::SERROR SetHostName (const char *hostName)
 set the hostname to connect to
void SetPortNumber (int portNumber)
 set the port number
ippSocket::SERROR Connect ()
ippSocket::SERROR CanSendData ()
ippSocket::SERROR Read (char *buffer, int nb)
ippSocket::SERROR Write (const char *sendbuf)
ippSocket::SERROR Ping ()
bool Listen (int portNumber)
ippSocket::SERROR Accept (ippSocket &socket)
void Close ()
bool Create ()

Public Attributes

LPHOSTENT _lpHostEntry
SOCKET _theSocket
SOCKADDR_IN _saServer
int _portNumber
WSAEVENT _Event
 the tcp/ip port number
std::string _lastErrorMsg
 the event that will let us detect when connect closes unexpecdantly.
int _lastError

Constructor & Destructor Documentation

ippSocketImp::ippSocketImp  ) 
 

Definition at line 78 of file ippSocket.cpp.

References _saServer.


Member Function Documentation

ippSocket::SERROR ippSocketImp::Accept ippSocket socket  ) 
 

Definition at line 524 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _theSocket, Close(), getErrorString(), and IPP_ASSERT.

ippSocket::SERROR ippSocketImp::CanSendData  ) 
 

Definition at line 168 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _theSocket, and getErrorString().

void ippSocketImp::Close  ) 
 

Definition at line 362 of file ippSocket.cpp.

References _Event, _theSocket, and IPP_ASSERT.

Referenced by Accept(), Listen(), and Read().

ippSocket::SERROR ippSocketImp::Connect  ) 
 

Definition at line 132 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _saServer, _theSocket, and getErrorString().

bool ippSocketImp::Create  ) 
 

Definition at line 320 of file ippSocket.cpp.

References _Event, _theSocket, InitSocket(), and IPP_ASSERT.

bool ippSocketImp::Listen int  portNumber  ) 
 

Definition at line 434 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _portNumber, _saServer, _theSocket, Close(), getErrorString(), InitSocket(), IPP_ASSERT, and IPP_ASSERT_FAIL.

ippSocket::SERROR ippSocketImp::Ping  ) 
 

Definition at line 387 of file ippSocket.cpp.

References _Event, _lastError, _lastErrorMsg, getErrorString(), and IPP_ASSERT.

ippSocket::SERROR ippSocketImp::Read char *  buffer,
int  nb
 

Definition at line 214 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _theSocket, Close(), and getErrorString().

ippSocket::SERROR ippSocketImp::SetHostName const char *  hostName  ) 
 

set the hostname to connect to

Definition at line 269 of file ippSocket.cpp.

References _lpHostEntry, and _saServer.

ippSocket::SERROR ippSocketImp::SetNonBlocking  ) 
 

mark the socket as being a non blocking socket.

Definition at line 106 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _theSocket, and getErrorString().

void ippSocketImp::SetPortNumber int  portNumber  ) 
 

set the port number

Definition at line 287 of file ippSocket.cpp.

References _portNumber, and _saServer.

ippSocket::SERROR ippSocketImp::Write const char *  sendbuf  ) 
 

Definition at line 250 of file ippSocket.cpp.

References _lastError, _lastErrorMsg, _theSocket, and getErrorString().


Member Data Documentation

WSAEVENT ippSocketImp::_Event
 

the tcp/ip port number

Definition at line 44 of file ippSocket.cpp.

Referenced by Close(), Create(), and Ping().

int ippSocketImp::_lastError [mutable]
 

Definition at line 47 of file ippSocket.cpp.

Referenced by Accept(), CanSendData(), Connect(), Listen(), Ping(), Read(), SetNonBlocking(), and Write().

std::string ippSocketImp::_lastErrorMsg [mutable]
 

the event that will let us detect when connect closes unexpecdantly.

Definition at line 46 of file ippSocket.cpp.

Referenced by Accept(), CanSendData(), Connect(), Listen(), Ping(), Read(), SetNonBlocking(), and Write().

LPHOSTENT ippSocketImp::_lpHostEntry
 

Definition at line 40 of file ippSocket.cpp.

Referenced by SetHostName().

int ippSocketImp::_portNumber
 

Definition at line 43 of file ippSocket.cpp.

Referenced by Listen(), and SetPortNumber().

SOCKADDR_IN ippSocketImp::_saServer
 

Definition at line 42 of file ippSocket.cpp.

Referenced by Connect(), ippSocketImp(), Listen(), SetHostName(), and SetPortNumber().

SOCKET ippSocketImp::_theSocket
 

Definition at line 41 of file ippSocket.cpp.

Referenced by Accept(), CanSendData(), Close(), Connect(), Create(), Listen(), Read(), SetNonBlocking(), and Write().


The documentation for this class was generated from the following file:
Generated on Wed Nov 8 00:21:07 2006 for IPPDME by  doxygen 1.4.1