Package totalcross.io
Class Connector
- java.lang.Object
-
- totalcross.io.Connector
-
public class Connector extends java.lang.ObjectUsed to open socket connections over CRADLE, WIFI, MDS, GPRS.
-
-
Constructor Summary
Constructors Constructor Description Connector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static totalcross.io.Connectionopen(java.lang.String url)Opens a new socket to the given url.
-
-
-
Method Detail
-
open
public static totalcross.io.Connection open(java.lang.String url) throws IOException, InvalidNumberExceptionOpens 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:
IOExceptionInvalidNumberException
-
-