|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.evalbench.comm.Connection
de.cau.cs.kieler.krep.evalbench.comm.SocketConnection
public class SocketConnection
Connection that uses sockets from java.net
.
Constructor Summary | |
---|---|
SocketConnection(String device,
int port)
Initializes connection. |
Method Summary | |
---|---|
void |
dispose()
Closes connection and removes locks on the involved device. |
protected InputStreamReader |
getInput()
Retrieves the input stream for this connection. |
protected OutputStream |
getOutput()
Retrieves the output stream for this connection. |
Methods inherited from class de.cau.cs.kieler.krep.evalbench.comm.Connection |
---|
hark, receive, receive, receiveByte, send, send, send |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketConnection(String device, int port) throws CommunicationException
device
- serial port nameport
- port number
CommunicationException
- when an error occurred during initializationMethod Detail |
---|
public void dispose()
protected InputStreamReader getInput()
getInput
in class Connection
null
if no input stream is availableprotected OutputStream getOutput()
Connection
getOutput
in class Connection
null
if no output stream is available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |