OsclUDPSocket Class Reference
[OSCL IO]

#include <oscl_socket.h>

Inheritance diagram for OsclUDPSocket:
HeapBase _OsclHeapBase

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)

Detailed Description

The UDP Socket class


Member Function Documentation

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.

Parameters:
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.
Returns:
Returns pointer to socket.

The documentation for this class was generated from the following file:

OSCL API
Posting Version: CORE_9.004.1.1