Queries the buffer size used for coding or decoding OSC messages.
Queries the buffer size used for coding or decoding OSC messages. This is the maximum size an OSC packet (bundle or message) can grow to.
the buffer size in bytes.
#setBufferSize( int )
Establishes connection for transports requiring connectivity (e.g.
Establishes connection for transports requiring
connectivity (e.g. TCP). For transports that do not require connectivity (e.g. UDP),
this ensures the communication channel is created and bound.
<P>
When a <B>UDP</B> transmitter
is created without an explicit DatagramChannel
– say by
calling Transmitter.newUsing( "udp" )
, you are required
to call connect()
so that an actual DatagramChannel
is
created and bound. For a <B>UDP</B> transmitter which was created with an explicit
DatagramChannel
, this method does noting, so it is always safe
to call connect()
. However, for <B>TCP</B> transmitters,
this may throw an IOException
if the transmitter
was already connected, therefore be sure to check isConnected()
before.
IOException
if a networking error occurs. Possible reasons: - the underlying
network channel had been closed by the server. - the transport
is TCP and the server is not available. - the transport is TCP
and an Receiver
sharing the same socket was stopped before (unable to revive).
#isConnected()
Changes the way processed OSC messages are printed to the standard err console.
Changes the way processed OSC messages are printed to the standard err console. By default messages are not printed.
one of Dump.Off
(don't dump, default),
Dump.Text
(dump human readable string),
Dump.Hex
(hexdump), or
Dump.Both
(both text and hex)
the stream to print on
Queries whether the channel is still open.
Queries whether the channel is still open.
Queries the transport protocol used by this communicator.
Queries the transport protocol used by this communicator.
the transport, such as UDP
or TCP
#TCP
#UDP