KUDPSocket Class Reference

Inheritance diagram for KUDPSocket:
[legend]
Collaboration diagram for KUDPSocket:
[legend]
List of all members.

Public Member Functions

 KUDPSocket (KTIME PingTime=UDPSOCK_PING, KTIME PingTimeOut=UDPSOCK_PINGTIMEOUT, KTIME ConnectionTimeOut=UDPSOCK_CONNTIMEOUT, u32 PacketBufferSize=UDPSOCK_PACKETBUFFERSIZE)
virtual ~KUDPSocket ()
bool Create ()
bool Close ()
virtual bool Connect (KInetAddr &Addr)
virtual bool Disconnect ()
bool Accept (KInetAddr &Addr)
bool Refuse (KInetAddr &Addr, KNREFUSEREASON Reason)
bool SendData (char *pBuffer, u32 Size, bool bGuaranteed=true, KPACKETID SendId=KPACKETID_NO)
bool BroadCastMessage (KInetAddr &Addr, KNetMsg &Msg)
bool SendUCMessage (KInetAddr &Addr, KNetMsg &Msg)
bool SendMessage (KNetMsg &Msg, bool bGuaranteed=true)
bool Retrieve (KPACKETID FirstId, KPACKETID LastId)
bool Reconnect ()
bool Attach (KUDPSocket *pSocket)
bool Detach ()
bool ReadSocket ()
bool SendSocket ()
virtual void OnReceive (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnAccept (KInetAddr &Addr)
virtual void OnConnect (KInetAddr &Addr)
virtual void OnDisconnect (KInetAddr &Addr)
virtual void OnPing (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnPong (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnData (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnRetrieve (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnBroadcast (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnRefuse (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnUCMessage (KInetAddr &Addr, char *pBuffer, u32 Size)
virtual void OnMessage (KInetAddr &Addr, KNetMsg &Msg)
virtual bool Manage ()
void SetInetAddr (KInetAddr &Addr)
KInetAddrGetInetAddr ()
bool IsConnected ()
bool IsConnecting ()
bool IsDisconnected ()
KTIME GetPing ()
u32 GetnBytesSent ()
u32 GetnBytesReceived ()
u32 GetnRealBytesSent ()
u32 GetnRealBytesReceived ()
void ResetStats ()
void SetTime (KTIME PingTime, KTIME PingTimeOut, KTIME ConnectionTimeOut)

Protected Member Functions

void AddSentPacketList (KNetPacket *pPacket)
KNetPacketGetSentPacketList (KPACKETID Id)
void AddRecvPacketList (KNetPacket *pPacket)
KNetPacketGetRecvPacketList (KPACKETID Id)
KNetPacketGetRecvNextPacketList (KPACKETID Id)
void RetrieveLostPackets (KPACKETID PacketId, KPACKETID ExpectedId)
bool SendPacket (KNPACKETTYPE Type, void *pBuffer=NULL, u32 Size=0)
void Reset ()
KSocketGetSocket ()

Protected Attributes

KSocket m_Socket
KInetAddr m_InetAddr
KInetAddr m_ConnectAddr
KNSOCKETSTATE m_SocketState
KTIME m_LastReceiveTime
KTIME m_LastConnectTime
KTIME m_LastRetrieveTime
KTIME m_LastPingTime
KTIME m_Ping
KPACKETID m_LastReceiveId
KPACKETID m_LastRetrieveId
KPACKETID m_LastSendId
KPACKETID m_HighId
KTIME m_PingTime
KTIME m_PingTimeOut
KTIME m_ConnectionTimeOut
u32 m_PacketBufferSize

Detailed Description

Definition at line 91 of file UDPSocket.h.


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