Package org.harctoolbox.harchardware.ir
Class LircCcfClient
java.lang.Object
org.harctoolbox.harchardware.ir.LircClient
org.harctoolbox.harchardware.ir.LircCcfClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IHarcHardware
,IIrSenderStop
,IRawIrSender
,IRemoteCommandIrSender
,ITransmitter
A LIRC client, talking to a remote LIRC
server through a TCP port.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.harctoolbox.harchardware.ir.LircClient
LircClient.CommandList, LircClient.CommandSendOnce, LircClient.CommandSendStart, LircClient.CommandSendStop, LircClient.CommandSetTransmitters, LircClient.CommandSimulate, LircClient.CommandVersion
-
Field Summary
Fields inherited from class org.harctoolbox.harchardware.ir.LircClient
defaultLircIP, defaultTimeout, lircDefaultPort
Fields inherited from interface org.harctoolbox.harchardware.ir.IRawIrSender
repeatMax
Fields inherited from interface org.harctoolbox.harchardware.ir.IRemoteCommandIrSender
repeatMax
-
Constructor Summary
ConstructorDescriptionLircCcfClient
(String hostname) LircCcfClient
(String hostname, Integer port, boolean verbose, Integer timeout) LircCcfClient
(InetAddress hostname) LircCcfClient
(InetAddress hostname, boolean verbose) LircCcfClient
(InetAddress hostname, boolean verbose, Integer timeout) LircCcfClient
(InetAddress hostname, Integer port, boolean verbose, Integer timeout) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
sendCcf
(String ccf, int count, Transmitter transmitter) boolean
sendCcfRepeat
(String ccf, Transmitter transmitter) boolean
sendIr
(org.harctoolbox.ircore.IrSignal irSignal, int count, Transmitter transmitter) boolean
stopIr
(int port) boolean
stopIr
(Transmitter transmitter) Stops ongoing IR transmission.Methods inherited from class org.harctoolbox.harchardware.ir.LircClient
close, getCommands, getRemotes, getTransmitter, getTransmitter, getTransmitter, getTransmitterNames, getVersion, isValid, main, open, readLoop, sendCommand, sendIrCommand, sendIrCommand, sendIrCommandRepeat, setDebug, setTimeout, setTransmitters, setTransmitters, setTransmitters, setVerbose, stopIr, stopIr
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.harctoolbox.harchardware.ir.IRawIrSender
getTransmitter
-
Constructor Details
-
LircCcfClient
public LircCcfClient(InetAddress hostname, Integer port, boolean verbose, Integer timeout) throws IOException - Throws:
IOException
-
LircCcfClient
public LircCcfClient(String hostname, Integer port, boolean verbose, Integer timeout) throws IOException - Throws:
IOException
-
LircCcfClient
- Throws:
IOException
-
LircCcfClient
- Throws:
IOException
-
LircCcfClient
- Throws:
IOException
-
LircCcfClient
- Throws:
UnknownHostException
IOException
-
-
Method Details
-
sendCcf
public boolean sendCcf(String ccf, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException -
sendCcf
public boolean sendCcf(String ccf, int count, int port) throws IOException, NoSuchTransmitterException -
sendCcfRepeat
public boolean sendCcfRepeat(String ccf, Transmitter transmitter) throws IOException, NoSuchTransmitterException -
sendIr
public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException - Specified by:
sendIr
in interfaceIRawIrSender
- Returns:
- if false, command failed.
- Throws:
IOException
NoSuchTransmitterException
-
stopIr
Description copied from interface:IIrSenderStop
Stops ongoing IR transmission.- Specified by:
stopIr
in interfaceIIrSenderStop
- Overrides:
stopIr
in classLircClient
- Returns:
- if false, command failed.
- Throws:
IOException
NoSuchTransmitterException
-
stopIr
-