#include <oscl_socket.h>
Inheritance diagram for OsclTCPSocket:
Public Methods | |
OSCL_IMPORT_REF | ~OsclTCPSocket () |
OSCL_IMPORT_REF int32 | Close () |
OSCL_IMPORT_REF int32 | Bind (OsclNetworkAddress &aAddress) |
OSCL_IMPORT_REF TPVSocketEvent | BindAsync (OsclNetworkAddress &aAddress, int32 aTimeoutMsec=(-1)) |
OSCL_IMPORT_REF void | CancelBind () |
OSCL_IMPORT_REF int32 | Listen (int32 aQueueSize) |
OSCL_IMPORT_REF TPVSocketEvent | ListenAsync (int32 aQueueSize, int32 aTimeoutMsec=(-1)) |
OSCL_IMPORT_REF void | CancelListen () |
OSCL_IMPORT_REF OsclTCPSocket * | GetAcceptedSocketL (uint32 aId) |
OSCL_IMPORT_REF uint8 * | GetRecvData (int32 *aLength) |
OSCL_IMPORT_REF uint8 * | GetSendData (int32 *aLength) |
OSCL_IMPORT_REF TPVSocketEvent | Connect (OsclNetworkAddress &aAddress, int32 aTimeoutMsec=-1) |
OSCL_IMPORT_REF void | CancelConnect () |
OSCL_IMPORT_REF TPVSocketEvent | Shutdown (TPVSocketShutdown aHow, int32 aTimeoutMsec=-1) |
OSCL_IMPORT_REF void | CancelShutdown () |
OSCL_IMPORT_REF TPVSocketEvent | Accept (int32 aTimeout=-1) |
OSCL_IMPORT_REF void | CancelAccept () |
OSCL_IMPORT_REF TPVSocketEvent | Send (const uint8 *aPtr, uint32 aLen, int32 aTimeoutMsec=-1) |
OSCL_IMPORT_REF void | CancelSend () |
OSCL_IMPORT_REF TPVSocketEvent | Recv (uint8 *aPtr, uint32 aMaxLen, int32 aTimeoutMsec=-1) |
OSCL_IMPORT_REF void | CancelRecv () |
Static Public Methods | |
OSCL_IMPORT_REF OsclTCPSocket * | NewL (Oscl_DefAlloc &alloc, OsclSocketServ &aServ, OsclSocketObserver *aObserver, uint32 aId) |
|
Destructor. The object must be deleted using the same allocator used in the NewL call. |
|
Accept incoming connections. This is an asynchronous method.
|
|
Bind a TCP socket to an address. This is a synchronous method.
|
|
Bind a TCP socket to an address. This is an asynchronous method.
|
|
Cancel Accept This method will cancel any pending Accept operation on the current socket, causing the Accept to complete with error EPVSocketCancel. If there is no pending Accept operation, this method will have no effect. |
|
Cancel Bind This method will cancel any pending BindAsync operation on the current socket, causing the BindAsync to complete with error EPVSocketCancel. If there is no pending BindAsync operation, this method will have no effect. |
|
Cancel Connect This method will cancel any pending Connect operation on the current socket, causing the Connect to complete with error EPVSocketCancel. If there is no pending Connect operation, this method will have no effect. |
|
Cancel Async Listen This method will cancel any pending ListenAsync operation on the current socket, causing the Listen to complete with error EPVSocketCancel. If there is no pending Listen operation, this method will have no effect. |
|
Cancel Recv This method will cancel any pending Recv operation on the current socket, causing the Recv to complete with error EPVSocketCancel. If there is no pending Recv operation, this method will have no effect. |
|
Cancel Send This method will cancel any pending Send operation on the current socket, causing the Send to complete with error EPVSocketCancel. If there is no pending Send operation, this method will have no effect. |
|
Cancel Shutdown This method will cancel any pending Shutdown operation on the current socket, causing the Shutdown to complete with error EPVSocketCancel. If there is no pending Shutdown operation, this method will have no effect. |
|
Close a TCP socket. This is a synchronous method. Once it is closed a socket cannot be re-opened. Sockets are automatically closed when they are deleted. This method may be used to see any error code returned from the platform's socket close call.
|
|
Connect to an address. This is an asynchronous method.
|
|
Retrieve the accept socket after a successful Accept operation. This is a synchronous method.
|
|
Retrieve the received data after a successful Recv operation. This is a synchronous method.
|
|
Retrieve the sent data after a successful Send operation. This is a synchronous method.
|
|
Listen. This is a synchronous method.
|
|
ListenAsync This is an asynchronous method.
|
|
Create a TCP Socket. May leave if failure.
|
|
Receive Data. This is an asynchronous method.
|
|
Send Data. This is an asynchronous method.
|
|
Shutdown a socket. This is an asynchronous method.
|