|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.comm.NXTCommConnector
public abstract class NXTCommConnector
Standard interface to connect/wait for a connection.
| Constructor Summary | |
|---|---|
NXTCommConnector()
|
|
| Method Summary | |
|---|---|
abstract boolean |
cancel()
Cancel a connection attempt. |
abstract NXTConnection |
connect(String target,
int mode)
Open a connection to the specified name/address using the given I/O mode |
abstract NXTConnection |
waitForConnection(int timeout,
int mode)
Wait for an incoming connection, or for the request to timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NXTCommConnector()
| Method Detail |
|---|
public abstract NXTConnection connect(String target,
int mode)
target - The name or address of the device/host to connect to.mode - The I/O mode to use for this connection
public abstract NXTConnection waitForConnection(int timeout,
int mode)
timeout - Time in ms to wait for the connection to be mademode - I/O mode to be used for the accepted connection.
public abstract boolean cancel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||