Location:
wapcli.h
Link against: wapstkcli.lib
RWDPConn
Supported from 6.0
WDP (Wireless Datagram Protocol) provides a general datagram transport service above the various data capable bearer services.
For error codes, see TReturnCodes
, and
RWAPConn::TReturnCodes
.
|
Defined in RWDPConn
:
CancelRecv()
, EInvalidParameter
, Open()
, Recv()
, Send()
, SendTo()
, TReturnCodes
Inherited from RSubSessionBase
:
CloseSubSession()
,
CreateSubSession()
,
SendReceive()
,
SubSessionHandle()
,
operator=()
Inherited from RWAPConn
:
CancelAll()
,
Close()
,
EBadConnection
,
EBearerError
,
EBufferTooSmall
,
ECannotOpenPort
,
EDelete
,
EGet
,
EHead
,
EMoreData
,
EOptions
,
EPortAlreadyBound
,
EPost
,
EPut
,
ETooManyConnections
,
ETrace
,
GetBearer()
,
GetLocalPort()
,
GetRemoteAddress()
,
TMethod
,
TPort
TInt Open(RWAPServ& aServer,TPort aLocalPort);
Initialises a bound connection. This is used to wait for a remote connect (listening). Services that listen for incoming data to a bound connection receive data from all available bearers.
|
|
TInt Open(RWAPServ& aServer,
const TDesC8& aRemoteHost,
TPort aRemotePort,
TPort aLocalPort,
TBearer aBearer,
TBool aSecureConn);
Initialises a fully specified connection.
|
|
void Recv(TDes8& aRemoteAddress,
TPckg<TUint16>& aRemotePort,
TDes8& aBuffer,
TRequestStatus& aStatus);
Receives a buffer from a bound connection.
If the connection is fully specified when opened, it will receive only from that host, otherwise datagrams can be received from any host.
The function completes as soon as a datagram is received. If
aBuffer
is too small, then the function completes with
KErrOverflow
and throws away the extra data.
|
TInt Send(const TDesC8& aBuffer);
Sends a buffer to a destination specified in the fully defined connection.
|
|
TInt SendTo(const TDesC8& aRemoteAddress,
TPort aRemotePort,
const TDesC8& aBuffer);
Sends a buffer to the destination specified in the arguments.
Note: this way of sending may not be used with secure (WTLS) connections.
|
|