Starting the connection through the destination network

After you have selected the destination network to be used, you can open the data connection.

To open the data connection with the selected destination network:

  1. Start the connection through the Internet destination network using the Connection Manager API.
  2. Select the best available access point within the Internet destination network using the Connection Manager API.

    RConnection handle is returned to the network. The connection can now be used.

       RSocketServ ss;

// Connect to ESOCK
ss.Connect();

// Open an RConnection object.  Note that you must provide an RSocketServ object
RConnection conn;
conn.Open( ss );

// Create overrides
TConnSnapPref prefs
prefs.SetSnap( 4 );

// Start an Outgoing Connection with overrides
conn.Start( prefs );