Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: wapcli.h
Link against: wapstkcli.lib

Class RWAPConn

RWAPConn

Support

Supported from 6.0

Description

Operations available on connections in all stack layers. It is the base class for the other connection classes, and is a handle to a subsession with the server.

Error codes can be a TReturnCodes value or a system-wide error code.

Derivation

RSubSessionBaseClient-side handle to a sub-session
RWAPConnOperations available on connections in all stack layers

Defined in RWAPConn:
CancelAll(), Close(), EBadConnection, EBearerError, EBufferTooSmall, ECannotOpenPort, EDelete, EGet, EHead, EMoreData, EOptions, EPortAlreadyBound, EPost, EPut, ETooManyConnections, ETrace, GetBearer(), GetLocalPort(), GetRemoteAddress(), TMethod, TPort, TReturnCodes

Inherited from RSubSessionBase:
CloseSubSession(), CreateSubSession(), Send(), SendReceive(), SubSessionHandle(), operator=()


Member functions


CancelAll()

void CancelAll();

Description

Cancels all outstanding operations for this connection.


Close()

TInt Close();

Description

Closes a connection. Closing:

releases resources associated with the sub-session

disconnects any connections made in the sub-session

Return value

TInt

Error code


GetBearer()

void GetBearer(TBearer& aBearer) const;

Description

Gets the current bearer. This is used when a listening connection connects, to discover the bearer.

Parameters

TBearer& aBearer


GetLocalPort()

TInt GetLocalPort(TPort& aPort) const;

Description

Gets the local port of this endpoint.

Parameters

TPort& aPort

On return, the local port value

Return value

TInt

Error code


GetRemoteAddress()

void GetRemoteAddress(TDes8& aAddress, TPort& aPort) const;

Description

Gets the address of the server. This is useful when a listening connection has been connected.

Parameters

TDes8& aAddress

On return, the remote address

TPort& aPort

On return, the remote port

[Top]


Enum TMethod

TMethod

Description

Method types for method invocations.

See also:

EGet

HTTP/1.1 GET

EOptions

HTTP/1.1 OPTIONS

EHead

HTTP/1.1 HEAD

EDelete

HTTP/1.1 DELETE

ETrace

HTTP/1.1 TRACE

EPost

HTTP/1.1 POST

EPut

HTTP/1.1 PUT

[Top]


Typedef TPort

typedef TUint16 TPort;

Description

Port number.

[Top]


Enum TReturnCodes

TReturnCodes

Description

Error codes.

EMoreData

There is more data to be read

EBearerError

One of: no bearer set; unknown bearer; a connection exists with different bearer; unable to get a local host name from bearer.

EPortAlreadyBound

The port is already used in another bound connection

ECannotOpenPort

Local port cannot be opened

ETooManyConnections

There are too many existing connections

EBadConnection

Connection handle is invalid

EBufferTooSmall

Passed buffer too small