Discussion Board
-
RConnection::Control
2004-11-01, 13:32
#1
Registered User
Hi,
I want to get detail information on client connection.
I am using Series 60 SDK v2.1,Metrowork Codewarrior.
I wrote following code.
Code Starts:-
RSocketServ socketServer;
RConnection connection;
TInt status=0;
TConnEnumArgBuf buf;
TConnGetClientInfoArgBuf buf1;
User::LeaveIfError(socketServer.Connect());
CleanupClosePushL(socketServer);
User::LeaveIfError(connection.Open(socketServer));
CleanupClosePushL(connection);
User::LeaveIfError(connection.Start());
User::LeaveIfError(connection.Control(KCOLConnection,KCoEnumerateConnectionClients,buf));
User::LeaveIfError(connection.Control(KCOLConnection,KCoGetConnectionClientInfo,buf1));
User::LeaveIfError(connection.Stop());
CleanupStack::PopAndDestroy(2);//socketServer,connection
Code Ends:-
User::LeaveIfError(connection.Control(KCOLConnection,KCoEnumerateConnectionClients,buf));
line always leaves with -15 error code.
I have configured Ethernet Plug-in & it is working fine. Ethernet plug-in is up & running while I am executing above code.
Please advise on same.
Thanks.
Jignesh.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules