#include <oscl_socket.h>
Public Member Functions | |
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 Member Functions | |
static OSCL_IMPORT_REF OsclUDPSocket * | NewL (Oscl_DefAlloc &alloc, OsclSocketServ &aServ, OsclSocketObserver *aObserver, uint32 aId) |
The UDP Socket class
static OSCL_IMPORT_REF OsclUDPSocket* OsclUDPSocket::NewL | ( | Oscl_DefAlloc & | alloc, | |
OsclSocketServ & | aServ, | |||
OsclSocketObserver * | aObserver, | |||
uint32 | aId | |||
) | [static] |
Create a UDP Socket. May leave if failure.
alloc,: | Memory allocator. | |
aServ,: | Socket server. Must be connected. | |
aObserver,: | Socket observer. | |
aId,: | Socket ID. The caller must assign an ID to each socket. The ID is used to identify the socket in observer callbacks. |