|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.dctl.j2me.io.BaseConnection
|
+--com.dctl.j2me.io.serversocket.Connection
Server sockets are used to allow external systems to connect to the device using
a TCP/IP socket.
Server sockets are opened using the URL "serversocket://
| Field Summary |
| Fields inherited from class com.dctl.j2me.io.BaseConnection |
protocol |
| Constructor Summary | |
Connection()
|
|
| Method Summary | |
StreamConnection |
acceptAndOpen()
Accept and open an incoming connection |
void |
close()
Close the underlying socket. |
void |
setParameters(java.lang.String url,
int mode,
boolean timeouts)
Set the URL, mode and timeouts |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Connection()
| Method Detail |
public void setParameters(java.lang.String url,
int mode,
boolean timeouts)
throws IOException
setParameters in class BaseConnectionurl - The URL passed to connector.openmode - The mode passed to connector.open or DEFAULTtimeouts - true if timeout exceptions should occur
IOException - if there is a problem
public void close()
throws IOException
close in interface ConnectionIOException - if there is an error
public StreamConnection acceptAndOpen()
throws IOException
acceptAndOpen in interface StreamConnectionNotifierIOException - if there is an error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||