#include <oscl_socket.h>
Inheritance diagram for OsclUDPSocket:
Public Methods | |
OSCL_IMPORT_REF | ~OsclUDPSocket () |
OSCL_IMPORT_REF TPVSocketEvent | ThreadLogoff () |
OSCL_IMPORT_REF TPVSocketEvent | ThreadLogon (OsclSocketServ &aServ, OsclSocketObserver *aObserver) |
OSCL_IMPORT_REF int32 | Close () |
OSCL_IMPORT_REF int32 | Bind (OsclNetworkAddress &aAddress) |
OSCL_IMPORT_REF int32 | Join (OsclNetworkAddress &aAddress) |
OSCL_IMPORT_REF int32 | JoinMulticastGroup (OsclIpMReq &aMReq) |
OSCL_IMPORT_REF int32 | SetMulticastTTL (int32 aTTL) |
OSCL_IMPORT_REF int32 | SetOptionToReuseAddress () |
OSCL_IMPORT_REF int32 | SetTOS (const OsclSocketTOS &aTOS) |
OSCL_IMPORT_REF int32 | GetPeerName (OsclNetworkAddress &aPeerName) |
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.
|
|
Retrieves the peer address of the socket
|
|
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.
|
|
Join the multicast group.
|
|
Create a UDP Socket. May leave if failure.
|
|
Receive Data. This is an asynchronous method.
|
|
Send Data. This is an asynchronous method.
|
|
Controls the number of intermediate systems through which a multicast datagram can be forwarded.
|
|
Allows the server to bind to an address which is in a TIME_WAIT state.
|
|
Set the buffer size of the socket This is a synchronous method.
|
|
Sets the Type of Service field of each outgoing IP datagram.
|
|
Thread logoff routine. This will prepare for transfer and use of the socket in another thread. All socket requests must be complete prior to calling this routine. If any requests are still active, it will return EPVSocketFailure; |
|
Thread logon routine. This will complete the transfer of a socket from another thread for use in the current thread. The ThreadLogoff API must be called in the original thread prior to calling ThreadLogon. |