-
- All Superinterfaces:
OSCChannel
public interface OSCBidi extends OSCChannel
An interface describing common functionality in bidirectional OSC communicators.- Since:
- NetUtil 0.30
- Version:
- 0.32, 02-Mar-07
- Author:
- Hanns Holger Rutz
-
-
Field Summary
-
Fields inherited from interface org.praxislive.internal.osc.OSCChannel
DEFAULTBUFSIZE, kDumpBoth, kDumpHex, kDumpOff, kDumpText, TCP, UDP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddumpIncomingOSC(int mode, PrintStream stream)Changes the way incoming messages are dumped to the console.voiddumpOutgoingOSC(int mode, PrintStream stream)Changes the way outgoing messages are dumped to the console.booleanisActive()Checks whether the communicator is active (was started) or not (is stopped).voidstart()Starts the communicator.voidstop()Stops the communicator.-
Methods inherited from interface org.praxislive.internal.osc.OSCChannel
dispose, dumpOSC, getBufferSize, getCodec, getLocalAddress, getProtocol, setBufferSize, setCodec
-
-
-
-
Method Detail
-
start
void start() throws IOExceptionStarts the communicator.- Throws:
IOException- if a networking error occurs
-
isActive
boolean isActive()
Checks whether the communicator is active (was started) or not (is stopped).- Returns:
trueif the communicator is active,falseotherwise
-
stop
void stop() throws IOException
Stops the communicator.- Throws:
IOException- if a networking error occurs
-
dumpIncomingOSC
void dumpIncomingOSC(int mode, PrintStream stream)Changes the way incoming messages are dumped to the console. By default incoming messages are not dumped. Incoming messages are those received by the client from the server, before they get delivered to registeredOSCListeners.- Parameters:
mode- seedumpOSC( int )for detailsstream- the stream to print on, ornullwhich is shorthand forSystem.err- See Also:
OSCChannel.dumpOSC( int, PrintStream ),dumpOutgoingOSC( int, PrintStream )
-
dumpOutgoingOSC
void dumpOutgoingOSC(int mode, PrintStream stream)Changes the way outgoing messages are dumped to the console. By default outgoing messages are not dumped. Outgoing messages are those send viasend.- Parameters:
mode- seedumpOSC( int )for detailsstream- the stream to print on, ornullwhich is shorthand forSystem.err- See Also:
OSCChannel.dumpOSC( int, PrintStream ),dumpIncomingOSC( int, PrintStream )
-
-