#include <oscl_socket.h>
Inheritance diagram for OsclUDPSocket:
Public Methods | |
OSCL_IMPORT_REF | ~OsclUDPSocket () |
OSCL_IMPORT_REF int32 | Close () |
OSCL_IMPORT_REF int32 | Bind (OsclNetworkAddress &aAddress) |
OSCL_IMPORT_REF int32 | Join (OsclNetworkAddress &aAddress) |
OSCL_IMPORT_REF TPVSocketEvent | BindAsync (OsclNetworkAddress &aAddress, int32 aTimeoutMsec=(-1)) |
OSCL_IMPORT_REF void | CancelBind () |
OSCL_IMPORT_REF uint8 * | GetRecvData (int32 *aLength) |
OSCL_IMPORT_REF uint8 * | GetSendData (int32 *aLength) |
OSCL_IMPORT_REF TPVSocketEvent | SendTo (const uint8 *aPtr, uint32 aLen, OsclNetworkAddress &aAddress, int32 aTimeoutMsec=-1) |
OSCL_IMPORT_REF void | CancelSendTo () |
OSCL_IMPORT_REF TPVSocketEvent | RecvFrom (uint8 *aPtr, uint32 aMaxLen, OsclNetworkAddress &aAddress, int32 aTimeoutMsec=-1, uint32 aMultiRecvLimit=0, Oscl_Vector< uint32, OsclMemAllocator > *aPacketLen=NULL, Oscl_Vector< OsclNetworkAddress, OsclMemAllocator > *aPacketSource=NULL) |
OSCL_IMPORT_REF void | CancelRecvFrom () |
OSCL_IMPORT_REF int32 | SetRecvBufferSize (uint32 size) |
Static Public Methods | |
OSCL_IMPORT_REF OsclUDPSocket * | 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. |
|
Bind a UDP socket to an address. This is a synchronous method.
|
|
Bind a UDP socket to an address. This is an asynchronous method.
|
|
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 RecvFrom This method will cancel any pending RecvFrom operation on the current socket, causing the RecvFrom to complete with error EPVSocketCancel. If there is no pending RecvFrom operation, this method will have no effect. |
|
Cancel SendTo This method will cancel any pending SendTo operation on the current socket, causing the SendTo to complete with error EPVSocketCancel. If there is no pending SendTo operation, this method will have no effect. |
|
Close a UDP 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.
|
|
Retrieve the received data after a successful RecvFrom operation. This is a synchronous method.
|
|
Retrieve the sent data after a successful SendTo operation. This is a synchronous method.
|
|
Bind a UDP socket to an address and Join the multicast group. This is a synchronous method.
|
|
Create a UDP Socket. May leave if failure.
|
|
Receive Data. This is an asynchronous method.
|
|
Send Data. This is an asynchronous method.
|
|
Set the buffer size of the socket This is a synchronous method.
|