|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cdev.clip.ClipService
Constructor Summary | |
ClipService()
Default constructor is used by clients to create a connection to a server using a subsequent connect call. |
|
ClipService(java.net.Socket s,
TransactionListener l)
Construct a CLIP I/O service connected to the specified socket, and with incoming traffic directed to the specified listener. |
Method Summary | |
void |
cancel(DeviceTransaction dt)
Cancel a transaction. |
void |
connect(java.lang.String host,
int port)
|
void |
disconnect()
|
void |
flush()
Flush any buffered I/O. |
java.lang.String |
getHostName()
|
static IOService |
getIOService()
Return an instance of this I/O service. |
int |
getPort()
|
void |
handleResponse(DeviceTransaction ev)
Handle a response to a transaction originated by an incoming request from this object. |
void |
initialize()
|
boolean |
isConnected()
|
void |
post(DeviceTransaction dt)
post: Post a transaction. |
void |
reconnect()
|
void |
run()
The run method continuously reads the socket for inbound messages. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ClipService()
public ClipService(java.net.Socket s, TransactionListener l) throws java.io.IOException
Method Detail |
public static IOService getIOService()
public void post(DeviceTransaction dt) throws java.io.IOException
public void handleResponse(DeviceTransaction ev)
public void flush() throws java.io.IOException
public void cancel(DeviceTransaction dt) throws java.io.IOException
public void run()
public void connect(java.lang.String host, int port) throws java.lang.Exception
public void reconnect() throws java.lang.Exception
public void initialize() throws java.io.IOException
public void disconnect()
public final boolean isConnected()
public java.lang.String getHostName()
public int getPort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |