Proud::CSocket Class Referenceabstract

Public Member Functions

virtual bool Bind ()=0
 
virtual bool Bind (int port)=0
 
virtual bool Bind (const PNTCHAR *addr, int port)=0
 
virtual SocketErrorCode Connect (String hostAddr, int hostPort)=0
 
virtual SocketErrorCode IssueRecvFrom (int length)=0
 
virtual SocketErrorCode IssueSendTo (uint8_t *data, int count, AddrPort sendTo)=0
 
virtual SocketErrorCode IssueRecv (int length)=0
 
virtual SocketErrorCode IssueSend (uint8_t *data, int count)=0
 
virtual bool GetRecvOverlappedResult (bool waitUntilComplete, OverlappedResult &ret)=0
 
virtual bool GetSendOverlappedResult (bool waitUntilComplete, OverlappedResult &ret)=0
 
virtual AddrPort GetSockName ()=0
 
virtual AddrPort GetPeerName ()=0
 
virtual void SetBlockingMode (bool isBlockingMode)=0
 
virtual uint8_t * GetRecvBufferPtr ()=0
 

Static Public Member Functions

static PROUD_API String GetIPAddress (String hostName)
 
static PROUD_API CSocketNew (SOCKET auxSocket, ISocketDelegate *dg)
 
static PROUD_API CSocketNew (SocketType type, ISocketDelegate *dg)
 

Detailed Description

CSocket class

  • It is useful when you access external Server or http without NetClient of ProudNet.
  • Use Proud::FastSocket internally

Member Function Documentation

virtual SocketErrorCode Proud::CSocket::Connect ( String  hostAddr,
int  hostPort 
)
pure virtual

TODO:translate needed.

static PROUD_API String Proud::CSocket::GetIPAddress ( String  hostName)
static

TODO:translate needed.

virtual AddrPort Proud::CSocket::GetPeerName ( )
pure virtual

TODO:translate needed.

virtual uint8_t* Proud::CSocket::GetRecvBufferPtr ( )
pure virtual

TODO:translate needed.

virtual bool Proud::CSocket::GetRecvOverlappedResult ( bool  waitUntilComplete,
OverlappedResult ret 
)
pure virtual

TODO:translate needed.

virtual bool Proud::CSocket::GetSendOverlappedResult ( bool  waitUntilComplete,
OverlappedResult ret 
)
pure virtual

TODO:translate needed.

virtual AddrPort Proud::CSocket::GetSockName ( )
pure virtual

TODO:translate needed.

virtual SocketErrorCode Proud::CSocket::IssueRecv ( int  length)
pure virtual

TODO:translate needed.

virtual SocketErrorCode Proud::CSocket::IssueRecvFrom ( int  length)
pure virtual

TODO:translate needed.

virtual SocketErrorCode Proud::CSocket::IssueSend ( uint8_t *  data,
int  count 
)
pure virtual

TODO:translate needed.

virtual SocketErrorCode Proud::CSocket::IssueSendTo ( uint8_t *  data,
int  count,
AddrPort  sendTo 
)
pure virtual

TODO:translate needed.

static PROUD_API CSocket* Proud::CSocket::New ( SOCKET  auxSocket,
ISocketDelegate dg 
)
static

TODO:translate needed.

static PROUD_API CSocket* Proud::CSocket::New ( SocketType  type,
ISocketDelegate dg 
)
static

TODO:translate needed.

virtual void Proud::CSocket::SetBlockingMode ( bool  isBlockingMode)
pure virtual

TODO:translate needed.