gSocket Class Reference

#include <gnet.h>

Inheritance diagram for gSocket:

gInt gStorage gTop List of all members.

Public Types

enum  eSocketKind { e_None, e_TCP = 1, e_UDP = 2, e_other }

Public Member Functions

 gSocket (int socketHandle, eSocketKind socketKind)
virtual ~gSocket ()
virtual bool IsOk ()
virtual bool IsOpened ()
virtual bool IsConnected ()
virtual int Handle ()
virtual bool Open (t_uchar *uName)
virtual bool Close ()
bool SetConnection (gIpAddr &ipAddr)
bool SetConnection (gHostAddr &hostAddr)

Protected Attributes

eSocketKind sockKind

Static Protected Attributes

static int sockCount = 0

Member Enumeration Documentation

enum gSocket::eSocketKind
 

Enumeration values:
e_None 
e_TCP 
e_UDP 
e_other 

Definition at line 165 of file gnet.h.


Constructor & Destructor Documentation

gSocket::gSocket int  socketHandle,
eSocketKind  socketKind
 

Definition at line 358 of file gnet.cpp.

gSocket::~gSocket  )  [virtual]
 

Definition at line 373 of file gnet.cpp.


Member Function Documentation

bool gSocket::Close  )  [virtual]
 

Definition at line 445 of file gnet.cpp.

Referenced by gTcpConnect::Close(), and gTcpConnect::~gTcpConnect().

int gSocket::Handle  )  [virtual]
 

Definition at line 389 of file gnet.cpp.

Referenced by gTcpConnect::Handle().

bool gSocket::IsConnected  )  [virtual]
 

Definition at line 395 of file gnet.cpp.

Referenced by IsOk().

bool gSocket::IsOk  )  [virtual]
 

Reimplemented from gStorage.

Definition at line 379 of file gnet.cpp.

Referenced by SetConnection().

bool gSocket::IsOpened  )  [virtual]
 

Definition at line 384 of file gnet.cpp.

Referenced by gTcpConnect::Connect(), Handle(), gTcpConnect::IsOk(), IsOk(), and gTcpConnect::Show().

bool gSocket::Open t_uchar uName  )  [virtual]
 

Definition at line 400 of file gnet.cpp.

Referenced by gTcpConnect::Connect().

bool gSocket::SetConnection gHostAddr hostAddr  ) 
 

Definition at line 462 of file gnet.cpp.

bool gSocket::SetConnection gIpAddr ipAddr  ) 
 

Definition at line 453 of file gnet.cpp.

Referenced by SetConnection().


Member Data Documentation

int gSocket::sockCount = 0 [static, protected]
 

Definition at line 20 of file gnet.cpp.

Referenced by gSocket(), and Open().

eSocketKind gSocket::sockKind [protected]
 

Definition at line 188 of file gnet.h.

Referenced by Open().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:18 2007 for xpfweb_v2x lib by  doxygen 1.4.2