|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.lirc.StreamReceiver | +--org.lirc.TCPReceiver
Reads signals from the WINLircd TCP socket (normally port 8765).
Don't use this class directly, use ReceiverFactory
instead.
Constructor Summary | |
TCPReceiver()
Connects to the socket. |
|
TCPReceiver(int port)
Connects to the socket. |
Method Summary | |
void |
close()
Disconnects from the socket. |
Methods inherited from class org.lirc.StreamReceiver |
finalize, readCode, setInput |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TCPReceiver() throws LIRCException
org.lirc.TCPReceiver.port
is set its value is used as
the port number, otherwise 8765 is used.LIRCException
- if it cannot connect, or if
the value of org.lirc.TCPReceiver.port
cannot be converted to an integer.public TCPReceiver(int port) throws LIRCException
port
- The port to connect toLIRCException
- if it cannot connect.Method Detail |
public void close()
close
in class StreamReceiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |