Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



How to disconnect

The following code fragment shows successive socket closes (on two sockets sock1 and sock2 and a host-resolver hr1) and subsequent closing of an RSocketServ instance, ss:

//
// CLOSING SOCKET 1 - MUX DISCONN.
//
sock1.Close();

//
// CLOSING SOCKET 2 - MUX & LAP DISCONN
//
sock2.Close();

//
// CLOSING HOST RESOLVER
//
hr1.Close();

//
// CLOSING SOCKSERV
//
ss.Close();