KSocket Class Reference

List of all members.

Public Member Functions

 KSocket ()
virtual ~KSocket ()
bool Attach (SOCKET hSocket)
bool Detach ()
bool Create (KNSOCKETTYPE Type)
bool Close ()
bool Bind (KInetAddr &Addr)
bool SelectRead ()
bool SelectWrite ()
bool SelectExcept ()
bool Connect (KInetAddr &Addr)
bool Disconnect ()
bool Listen ()
bool Accept (KSocket &AcceptedSocket, KInetAddr &Addr)
bool Send (void *pBuffer, s32 Size)
bool Receive (void *pBuffer, s32 Size, u32 *pBytesRead)
bool SendTo (KInetAddr &Addr, void *pBuffer, u32 Size)
bool ReceiveFrom (KInetAddr &Addr, void *pBuffer, u32 Size, u32 *pBytesRead)
bool AsyncSelect ()
bool IsConnected ()
void SetConnected (bool bConnected)
void EnableBroadcast (bool bEnable)
virtual void OnAccept ()
virtual void OnRead ()
virtual void OnWrite ()
virtual void OnClose ()
virtual void OnOOB ()
SOCKET GethSocket ()
u32 GetnBytesSent ()
u32 GetnBytesReceived ()
u32 GetnRealBytesSent ()
u32 GetnRealBytesReceived ()
void ResetStats ()

Static Public Member Functions

static bool StartNetwork ()
static bool StopNetwork ()
static bool GetHostName (char *pBuffer, s32 Size)
static hostent * GetHostByName (char *pName)
static hostent * GetHostByAddr (KInetAddr &Addr)
static bool GetAddrByName (KStr &sHostName, KInetAddr &Addr)

Protected Attributes

SOCKET m_hSocket
bool m_bConnected
bool m_bCompress
bool m_bAttached
u32 m_nBytesSent
u32 m_nBytesReceived
u32 m_nRealBytesSent
u32 m_nRealBytesReceived

Detailed Description

Definition at line 23 of file Socket.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 25 20:02:41 2007 for Zythum Project by  doxygen 1.5.1-p1