Symbian
Symbian OS Library

SYMBIAN OS V9.4

Feedback 

[Index] [Spacer] [Previous] [Next]



Location: ES_SOCK.H
Link against: esock.lib

Class RConnection

class RConnection : public RCommsSubSession;

Description

The management interface for a network connection or subconnection.

Provides clients with the following functionality:

Opening and closing the connection

Starting a connection, which means associating it with a new underlying interface

Attaching the RConnection instance to an existing interface

Stopping the connection, which means disassociating it from the underlying interface

Obtaining progress information and notification during connection start-up

Notifying when subconnections come up and go down

Notifying when there is a service change for the connection

Notifying when a given amount of data has been sent or received on a connection or subconnection

Reading CommDB fields specific to an active connection

Collecting statistical information on the network connection and subconnections. A UI component can display the collected statistical information in order to allow the user to examine the status of connections. The information that can be gathered is the following:

All available internet access point names and internet access point 'friendly' names as appropriate for each network (GPRS/UMTS) connection

Enumerating the currently active connections and subconnections

The current status of all network connections e.g. active/suspended

The amount of data (in bytes) transferred uplink and downlink by the network connection and subconnections

The amount of time each network connection has been active (in seconds)

The current status of the connection and subconnections with respect to data transfer, i.e. active/inactive

The Quality of Service profile associated with each Packet Data Protocol (GPRS/UMTS) context, e.g. low/medium/high

Note that several of the new functions are asynchronous. It is essential for these calls that the client ensures that the parameters they pass to the RConnection API remain in scope for the duration of the asynchronous call.

Derivation

Members

Defined in RConnection:
AllInterfaceNotification(), AllSubConnectionNotification(), Attach(), CancelAllInterfaceNotification(), CancelAllSubConnectionNotification(), CancelIoctl(), CancelProgressNotification(), CancelProgressNotification(), CancelServiceChangeNotification(), CancelWaitForIncoming(), Close(), Control(), DataReceivedNotificationCancel(), DataReceivedNotificationCancel(), DataReceivedNotificationRequest(), DataReceivedNotificationRequest(), DataSentNotificationCancel(), DataSentNotificationCancel(), DataSentNotificationRequest(), DataSentNotificationRequest(), DataTransferredCancel(), DataTransferredCancel(), DataTransferredRequest(), DataTransferredRequest(), EAttachTypeMonitor, EAttachTypeNormal, EStopAuthoritative, EStopNormal, EnumerateConnections(), EnumerateSubConnections(), GetBoolSetting(), GetConnectionInfo(), GetDesSetting(), GetDesSetting(), GetIntSetting(), GetLongDesSetting(), GetOpt(), GetParameters(), GetSubConnectionInfo(), GetSubConnectionInfo(), Ioctl(), Ioctl(), IsConnectionActiveCancel(), IsConnectionActiveRequest(), IsSubConnectionActiveCancel(), IsSubConnectionActiveRequest(), LastProgressError(), Name(), Open(), Open(), Progress(), Progress(), ProgressNotification(), ProgressNotification(), RConnection(), ServiceChangeNotification(), SetOpt(), Start(), Start(), Start(), Start(), Stop(), Stop(), Stop(), Stop(), TConnAttachType, TConnStopType, WaitForIncoming(), WaitForIncoming(), ~RConnection()

Inherited from RSubSessionBase:
CloseSubSession(), CreateAutoCloseSubSession(), CreateSubSession(), Send(), SendReceive(), Session(), SubSessionHandle()

See also


Construction and destruction


RConnection()

IMPORT_C RConnection();

Description

Connection Management Interface


~RConnection()

virtual IMPORT_C ~RConnection();

Description

Empty destructor.

[Top]


Member functions


Open()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C TInt Open(RSocketServ &aSocketServer, TUint aConnectionType=KConnectionTypeDefault);

Description

Opens a new RConnection instance.

Parameters

RSocketServ &aSocketServer

Socket Server session.

TUint aConnectionType

Reserved.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


Open()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C TInt Open(RSocketServ &aSocketServer, TName &aName);

Description

Opens a new RConnection instance cloned from an existing RConnection instance.

Parameters

RSocketServ &aSocketServer

Socket Server session.

TName &aName

Name of an existing RConnection (obtainable via Name() method).

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


Close()

IMPORT_C void Close();

Description

Closes the connection.

The connection will not be dropped immediately: it will be dropped when there is no more data traffic on the connection. So if a client needs to graciously shutdown the connection, Close(), not Stop(), needs to be used after shutting down the socket.


Start()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C void Start(TRequestStatus &aStatus);

Description

Starts a connection asynchronously using the existing connection preferences in CommDb.

Note that this may or may not result in a dialog prompt, depending on the connection preference settings.

The request will complete once the connection is fully up (i.e. has has reached the KLinkLayerOpen stage), or if an error occurs during any stage of connection startup.

Parameters

TRequestStatus &aStatus

On return, the status of the request, e.g. KErrNone, KErrAlreadyExists.


Start()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C void Start(TConnPref &aPref, TRequestStatus &aStatus);

Description

Starts a connection asynchronously by overriding connection preference settings in CommDb.

The settings which can be overridden are: IAP Id, Network Id, Dialog Preference, Direction, Bearer Set.

The request will complete once the connection is fully up (i.e. has has reached the KLinkLayerOpen stage), or if an error occurs during any stage of connection startup.

Parameters

TConnPref &aPref

Connection preferences.

TRequestStatus &aStatus

On return, the status of the request, e.g. KErrNone, KErrAlreadyExists.


Start()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C TInt Start();

Description

Starts a connection synchronously using the connection preference settings in CommDb.

There is no overriding of settings (such as IAP Id, Network Id, Dialog Preference, Direction, Bearer Set).

This may or may not result in a dialog prompt, depending on the connection preference settings.

The request will complete once the connection is fully up (i.e. has has reached the KLinkLayerOpen stage), or if an error occurred during any stage of connection startup.

Return value

TInt

KErrNone if successful or the connection already exists, otherwise another of the system wide error codes.


Start()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C TInt Start(TConnPref &aPref);

Description

Starts a connection synchronously by overriding connection preference settings in CommDb.

The settings which can be overridden are: IAP Id, Network Id, Dialog Preference, Direction, Bearer Set.

The request will complete once the connection is fully up (i.e. has has reached the KLinkLayerOpen stage), or if an error occurred during any stage of connection startup.

Parameters

TConnPref &aPref

Connection preferences.

Return value

TInt

KErrNone if successful or the connection already exists, otherwise another of the system wide error codes.


Stop()

IMPORT_C TInt Stop();

Description

Stops the entire connection by disconnecting the underlying network interface immediately, regardless of whether other clients are using it or not.

Applications using the connection will be sent the socket error code KErrCancel. The application generally responds with clean up operations and pop-up boxes alerting the user to the termination of the application.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


Stop()

IMPORT_C TInt Stop(TConnStopType aStopType);

Description

Stops the entire connection by disconnecting the underlying network interface immediately, regardless of whether other clients are using it or not.

If the argument is EStopNormal this is identical to calling Stop() with no argument. If it is EStopAuthoritative then applications using the connection will be sent the socket error code KErrConnectionTerminated, which generally results in the applications closing quietly (without pop-up boxes).

Parameters

TConnStopType aStopType

The type of stop which is being requested.

Return value

TInt

KErrNone or another of the system wide error codes; in particular KErrArgument if the stop type is unrecognised.


Stop()

IMPORT_C TInt Stop(TSubConnectionUniqueId aSubConnectionUniqueId);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Stops a subconnection.

Applications will be sent a socket error code to indicate that they must perform clean up operations.

Parameters

TSubConnectionUniqueId aSubConnectionUniqueId

A valid identifier for a subconnection.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


Stop()

IMPORT_C TInt Stop(TSubConnectionUniqueId aSubConnectionUniqueId, TConnStopType aStopType);

Pre-Condition

Must be attached to a connection; either by performing a Start(), or using Attach()

Description

Stop a subconnection on an interface

Parameters

TSubConnectionUniqueId aSubConnectionUniqueId

A valid identifier for a subconnection

TConnStopType aStopType

The kind of stop to do (controls what error code is reported to interface clients)

Return value

TInt

KErrNone if successful, otherwise one of the system-wide error codes


WaitForIncoming()

IMPORT_C void WaitForIncoming(RSubConnection &aIncomingSubConnection, TRequestStatus &aStatus);

Pre-Condition

Must be attached to a connection by performing a Start().

Description

Subscribe for an incoming session on this connection.

Parameters

RSubConnection &aIncomingSubConnection

On completion, the subconnection representing the incoming session. The incoming session can be accepted (by calling RSubConnection::Accept) or rejected (by calling RSubConnection::Stop) The subconnection is implicitly started (no need to call RSubConnection::Start). aIncomingSubConnection must not be open prior to calling this method.

TRequestStatus &aStatus

On completion, the status of the request, e.g. KErrNone or another of the system wide error codes.


WaitForIncoming()

IMPORT_C TInt WaitForIncoming(RSubConnection &aIncomingSubConnection);

Pre-Condition

Must be attached to a connection by performing a Start().

Description

Synchronously wait for an incoming session on this connection.

Parameters

RSubConnection &aIncomingSubConnection

On completion, the subconnection representing the incoming session. The incoming session can be accepted (by calling RSubConnection::Accept) or rejected (by calling RSubConnection::Stop) The subconnection is implicitly started (no need to call RSubConnection::Start). aIncomingSubConnection must not be open prior to calling this method.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


CancelWaitForIncoming()

IMPORT_C void CancelWaitForIncoming();

Pre-Condition

Must be attached to a connection by performing a Start().

Description

Cancel the previous subscription for an incoming session.

See also:


ProgressNotification()

IMPORT_C void ProgressNotification(TNifProgressBuf &aProgress, TRequestStatus &aStatus, TUint aSelectedProgress=KConnProgressDefault);

Description

Requests asynchronous progress notification for the connection.

Parameters

TNifProgressBuf &aProgress

A buffer to receive progress notification.

TRequestStatus &aStatus

On return, the status of the request.

TUint aSelectedProgress

The type of progress to report. If set, report only the particular progress specified and any progress in error. If not set, report all progress normally.


ProgressNotification()

IMPORT_C void ProgressNotification(TSubConnectionUniqueId aSubConnectionUniqueId, TNifProgressBuf &aProgress, TRequestStatus &aStatus, TUint aSelectedProgress=KConnProgressDefault);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

No outstanding request for progress notifications for this subconnection on this RConnection

Description

Requests asynchronous progress notification for a subconnection.

NOTE: This function is not supported and will correctly return KErrNotSupported.

Parameters

TSubConnectionUniqueId aSubConnectionUniqueId

A valid identifier for a subconnection.

TNifProgressBuf &aProgress

A buffer to receive progress notification.

TRequestStatus &aStatus

On return, the status of the request.

TUint aSelectedProgress

The type of progress to report. If set, report only the particular progress specified and any progress in error. If not set, report all progress normally.


CancelProgressNotification()

IMPORT_C void CancelProgressNotification();

Description

Cancels a request for progress notification for the connection, as issued by ProgressNotification().


CancelProgressNotification()

IMPORT_C void CancelProgressNotification(TSubConnectionUniqueId aSubConnectionUniqueId);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

An outstanding request for a progress notification on the subconnection on this RConnection

Description

Cancels a request for progress notification for a specified subconnection, as issued by ProgressNotification().

Parameters

TSubConnectionUniqueId aSubConnectionUniqueId

The identifier for the subconnection used to make the request.


Progress()

IMPORT_C TInt Progress(TNifProgress &aProgress);

Description

Obtains the current progress information for the connection.

Parameters

TNifProgress &aProgress

A buffer to receive progress information.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


Progress()

IMPORT_C TInt Progress(TSubConnectionUniqueId aSubConnectionUniqueId, TNifProgress &aProgress);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Obtains the current progress information on a specified subconnection.

Parameters

TSubConnectionUniqueId aSubConnectionUniqueId

A valid identifier for the subconnection of interest.

TNifProgress &aProgress

On return, progress information.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


LastProgressError()

IMPORT_C TInt LastProgressError(TNifProgress &aProgress);

Description

Obtains information about the last Progress() call which failed with an error.

Parameters

TNifProgress &aProgress

A buffer to receive progress information.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


ServiceChangeNotification()

IMPORT_C void ServiceChangeNotification(TUint32 &aNewISPId, TDes &aNewServiceType, TRequestStatus &aStatus);

Description

Requests service change notification from the agent.

This call completes if the underlying service changes (i.e. ISP, GPRS APN or LAN Service).

Parameters

TUint32 &aNewISPId

On completion, the new ISP Id.

TDes &aNewServiceType

On completion, the new service type.

TRequestStatus &aStatus

On completion, KErrNone if succesful, otherwise another of the system wide error codes.


CancelServiceChangeNotification()

IMPORT_C void CancelServiceChangeNotification();

Description

Cancels a request for notification of change of service for the connection, as issued by ServiceChangeNotification().


GetIntSetting()

Capability: Dependenton table - deferred to RDBMS

IMPORT_C TInt GetIntSetting(const TDesC &aSettingName, TUint32 &aValue);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Reads current CommDb settings for the active connection.

Parameters

const TDesC &aSettingName

The CommDb table name and field name to be accessed. Of the form "<table name>\<field name>" (for example "IAP\Id" or "ModemBearer\PortName").

TUint32 &aValue

On return, the value of the table/field pair.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetBoolSetting()

Capability: Dependenton table - deferred to RDBMS

IMPORT_C TInt GetBoolSetting(const TDesC &aSettingName, TBool &aValue);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Reads current CommDb settings for the active connection.

Parameters

const TDesC &aSettingName

The CommDb table name and field name to be accessed. Of the form "<table name>\<field name>". (for example "IAP\Id" or "ModemBearer\PortName").

TBool &aValue

On return, the value of the table/field pair.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetDesSetting()

Capability: Dependenton table - deferred to RDBMS

IMPORT_C TInt GetDesSetting(const TDesC &aSettingName, TDes8 &aValue);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Reads current CommDb settings for the active connection.

Parameters

const TDesC &aSettingName

The CommDb table name and field name to be accessed. Of the form "<table name>\<field name>" (for example "IAP\Id" or "ModemBearer\PortName").

TDes8 &aValue

On return, the value of the table/field pair.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetDesSetting()

Capability: Dependenton table - deferred to RDBMS

IMPORT_C TInt GetDesSetting(const TDesC &aSettingName, TDes16 &aValue);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Reads current CommDb settings for the active connection.

Parameters

const TDesC &aSettingName

The CommDb table name and field name to be accessed. Of the form "<table name>\<field name>" (for example "IAP\Id" or "ModemBearer\PortName").

TDes16 &aValue

On return, the value of the table/field pair.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetLongDesSetting()

Capability: Dependenton table - deferred to RDBMS

IMPORT_C TInt GetLongDesSetting(const TDesC &aSettingName, TDes &aValue);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Reads current CommDb settings for the active connection.

Parameters

const TDesC &aSettingName

The CommDb table name and field name to be accessed. Of the form "<table name>\<field name>". (for example "IAP\Id" or "ModemBearer\PortName").

TDes &aValue

On return, the value of the table/field pair.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetParameters()

IMPORT_C TInt GetParameters(ESock::CCommsDataObjectBase &aDataObject);

Description

Parameters

ESock::CCommsDataObjectBase &aDataObject

Return value

TInt


Name()

IMPORT_C TInt Name(TName &aName);

Description

Gets the unique name of an RConnection.

Used to create an RConnection which is a clone of an existing RConnection (possibly in a different process).

Parameters

TName &aName

On return, the unique name of the RConnection.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


EnumerateConnections()

IMPORT_C TInt EnumerateConnections(TUint &aCount);

Description

Enumerates the number of currently active interfaces.

Note: This does not count the number of RConnections but the number of underlying interfaces. These may be attached to by varying numbers of RConnections, RSockets etc.

Parameters

TUint &aCount

On return, contains the number of currently active interfaces on the server.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


GetConnectionInfo()

IMPORT_C TInt GetConnectionInfo(TUint aIndex, TDes8 &aConnectionInfo);

Description

Gets information about one of the currently active connections.

Note that the actual connection information is gathered on a call to EnumerateConnections() and GetConnectionInfo() is simply used to return the information to the client. Therefore, if the state of the connections change after the EnumerateConnections() call, then the information returned by GetConnectionInfo() may be out of date.

Parameters

TUint aIndex

The index of the connection - must be between 1 and the value of aCount returned in EnumerateConnections().

TDes8 &aConnectionInfo

On return, contains a TPckg<TConnectionInfo> containing information about the connection.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


AllInterfaceNotification()

IMPORT_C void AllInterfaceNotification(TDes8 &aNotification, TRequestStatus &aStatus);

Description

Requests asynchronous change notification for all interfaces.

This allows a client to receive a notification whenever a connection in the system goes up or down.

This allows the automatic update of the list of active network connections.

Parameters

TDes8 &aNotification

On return, a wrapped interface change notification (TInterfaceNotification).

TRequestStatus &aStatus

On return, the status of the request.


CancelAllInterfaceNotification()

IMPORT_C void CancelAllInterfaceNotification();

Description

Cancels a change notification request previously issued by a call to AllInterfaceNotification().


Ioctl()

Capability: Dependenton the type of operation so deferred to PRT. See documentation of constant values used in aOptionName and aOptionLevel for more information
Capability: NetworkControlConditional on: KConnAddrRelease
Capability: NetworkControlConditional on: KConnAddrRenew

IMPORT_C void Ioctl(TUint aOptionLevel, TUint aOptionName, TRequestStatus &aStatus, TDes8 *aDesc);

Description

Get information on the connection in an asynchronous manner

Parameters

TUint aOptionLevel

Option level to be used.

TUint aOptionName

Option name to be used.

TRequestStatus &aStatus

TDes8 *aDesc


Ioctl()

Capability: Dependenton the type of operation so deferred to PRT. See documentation of constant values used in aOptionName and aOptionLevel for more information
Capability: NetworkControlConditional on: KConnAddrRelease
Capability: NetworkControlConditional on: KConnAddrRenew

IMPORT_C void Ioctl(TUint aOptionLevel, TUint aOptionName, TRequestStatus &aStatus);

Description

Get information on the connection in an asynchronous manner

Parameters

TUint aOptionLevel

Option level to be used.

TUint aOptionName

Option name to be used.

TRequestStatus &aStatus


CancelIoctl()

IMPORT_C void CancelIoctl();

Description

Cancel any outstanding Ioctl request


Control()

Capability: Dependenton the type of operation so deferred to PRT. See documentation of constant values used in aOptionName and aOptionLevel for more information
Capability: NetworkControlConditional on: KCoGetConnectionSocketInfo
Capability: NetworkControlConditional on: KCoGetConnectionClientInfo
Capability: NetworkControlConditional on: KConnDisableTimers
Capability: NetworkControlConditional on: KCOLAgent
Capability: NetworkControlConditional on: KCoEnumerateConnectionClients
Capability: NetworkControlConditional on: KCOLInterface

IMPORT_C TInt Control(TUint aOptionLevel, TUint aOptionName, TDes8 &aOption);

Description

Gets detailed information on connection clients and sockets.

More likely to be used by system control type applications.

Parameters

TUint aOptionLevel

Option level to be used.

TUint aOptionName

Option name to be used.

TDes8 &aOption

On return, the option value.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


GetOpt()

Capability: Dependenton the type of operation so deferred to PRT. See documentation of constant values used in aOptionName and aOptionLevel for more information

IMPORT_C TInt GetOpt(TUint aOptionLevel, TUint aOptionName, TInt &aOption);

Description

Gets an option.

Parameters

TUint aOptionLevel

Option level to be queried.

TUint aOptionName

Option name to be queried.

TInt &aOption

On return, the option value.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


SetOpt()

Capability: Dependenton the type of operation so deferred to PRT. See documentation of constant values used in aOptionName and aOptionLevel for more information

IMPORT_C TInt SetOpt(TUint aOptionLevel, TUint aOptionName, TInt aOption=0);

Description

Sets an option.

Parameters

TUint aOptionLevel

Option level to be set.

TUint aOptionName

Option name to be set

TInt aOption

Option value.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


Attach()

Capability: Dependenton the type of connection so deferred to PRT

IMPORT_C TInt Attach(const TDesC8 &aConnectionInfo, TConnAttachType aAttachType);

Description

Attaches the RConnection object to an existing interface.

This operation will not start an interface, as Start() does, but attaches to an existing interface if it exists.

Parameters

const TDesC8 &aConnectionInfo

Identity of the connection to attach to. This is a TPckg<TConnectionInfo>& (possibly obtained from a call to GetConnectionInfo()).

TConnAttachType aAttachType

Identifies the intended use of the connection.

Return value

TInt

KErrNone if succesful, or another of the system-wide error codes.


EnumerateSubConnections()

IMPORT_C TInt EnumerateSubConnections(TUint &aCount);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Asks the server to gather information on the currently active subconnections.

Note: Unlike EnumerateConnections(), EnumerateSubConnections() does not cache the information about subconnections, so it is possible for a greater or fewer number of records to be returned through GetSubConnectionInfo()

Parameters

TUint &aCount

On return, contains the number of currently active connections.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


GetSubConnectionInfo()

IMPORT_C TInt GetSubConnectionInfo(TDes8 &aSubConnectionInfo);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Gets information about one of the currently active subconnections.

This function is used when a valid TSubConnectionUniqueId has been discovered using the alternative form of GetSubConnectionInfo(), and the client wishes to update its TSubConnectionInfo-derived structure with the latest subconnection information.

Parameters

TDes8 &aSubConnectionInfo

A TPckg<TSubConnectionInfo-derived class>: the actual class depends upon the type of subconnection, eg. GPRS context, PPP, NCP. On entry, must contain a valid TSubConnectionUniqueId to indicate which of the subconnections it wishes to gather information about. On return, contains information about the subconnection.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


GetSubConnectionInfo()

IMPORT_C TInt GetSubConnectionInfo(TUint aIndex, TDes8 &aSubConnectionInfo);

Pre-Condition

An attached connection: as a result of performing either a Start() or an Attach()

Description

Gets information about one of the currently active subconnections.

This function is intended for the initial enumeration of connections, when no TSubConnectionUniqueIds are available, so the client must iterate through the list of subconnections.

Parameters

TUint aIndex

The index of the connection - must be between 1 and the value of aCount returned in EnumerateSubConnections().

TDes8 &aSubConnectionInfo

On return, contains a TPckg<TSubConnectionInfo-derived class> containing information about the subconnection; the actual class depends upon the type of subconnection, eg. GPRS context, PPP NCP.

Return value

TInt

KErrNone if successful, otherwise another of the system wide error codes.


AllSubConnectionNotification()

IMPORT_C void AllSubConnectionNotification(TSubConnectionNotificationBuf &aSubConnectionEvent, TRequestStatus &aStatus);

Pre-Condition

An attached connection: as a result of performing either a