totalcross.io
Class Connector

totalcross.lang.Object
  extended by totalcross.io.Connector

public class Connector
extends totalcross.lang.Object

totalcross.lang.Class used to open socket connections over CRADLE, WIFI, MDS, GPRS.


Constructor Summary
Connector()
           
 
Method Summary
static totalcross.io.Connection open(String url)
          Opens a new socket to the given url.
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Method Detail

open

public static totalcross.io.Connection open(String url)
                                     throws IOException
Opens a new socket to the given url. The socket will be opened using the first available network connection in the following order: CRADLE, WIFI, MDS, GPRS.

Parameters:
url - The socket opened to the given url and network connection.
Returns:
The socket opened to the given url and network connection.
Throws:
IOException