hi
i'm trying to find out the active connection on symbain 9.2
but i can't find this class TSubConnectionInfoGprsUmts & TConnectionInfoV2 ..
i'm working according to nokia example "Connection Management"
any idea ?
nimco
hi
i'm trying to find out the active connection on symbain 9.2
but i can't find this class TSubConnectionInfoGprsUmts & TConnectionInfoV2 ..
i'm working according to nokia example "Connection Management"
any idea ?
nimco
To enumerate connections, you'll need to use the RConnection API.
Here's a simple example.
Note: error checking is disabled and async methods called synchronously!
RSocketServ ss;
ss.Connect();
RConnection conn;
conn.open(ss);
// Enumerate connections return number of underlying interfaces
TUint count;
conn.EnumerateConnections(count);
TPckgBuf<TConnectionInfoV2> connectionInfo;
for (TUint interface = 0; interface < count; ++interface)
{
GetConnectionInfo(interface, connectionInfo);
// Do whatever you wish with the connectionInfo...
}
hi
i can't find TConnectionInfoV2
i get undefined identifier TConnectionInfoV2.
what header file should i include
nimco
Good guess, you need a header. Consider searching for TConnectionInfoV2 in epoc32\include.i get undefined identifier TConnectionInfoV2.
what header file should i include
You'll find it in es_enum.h.
As a side note, did it not occur to you to search *.h files epoc32/include folder for TConnectionInfoV2? How difficult is that?