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 CSocket * | New (SocketType type, ISocketDelegate *dg) |
CSocket class
|
pure virtual |
Connect.
hostAddr | Address of host |
hostPort | Port of host |
|
pure virtual |
TODO:translate needed. Get the socket address to the peer.
|
pure virtual |
TODO:translate needed. Get the pointer of the recv buffer.
|
pure virtual |
TODO:translate needed. Wait for the result of async issue.
waitUntilComplete | Determine whether to wait until complete. |
Refer | to the result OverlappedResult |
|
pure virtual |
TODO:translate needed. Wait for the result of async issue.
waitUntilComplete | Determine whether to wait until complete. |
ret | Refer to the result OverlappedResult |
|
pure virtual |
TODO:translate needed. Get the address of the socket
|
pure virtual |
TODO:translate needed. TCP socket
length | Size of length buffer |
|
pure virtual |
UDP socket
length | Size of length buffer |
|
pure virtual |
TODO:translate needed. TCP socket
data | Array of the data to be sent. |
count | Size of the array |
|
pure virtual |
UDP socket
|
static |
TODO:translate needed. Generate CSocket object
type | Determine the type of the socket. |
dg | Object to receive the socket event. Refer to ISocketDelegate. |
|
pure virtual |
TODO:translate needed. Select whether to use the blocking mode for the communication.