Interface OscConnection
public interface OscConnection
This interface lets you send OscMessage through an connection which can be via Tcp, Udp, or whatever.
OscPackets are sent when all the startBundle() have a matching endBundle().
If you call sendMessage() with startBundle() before, then the message will be sent directly.
Our maximum packet size is 64K.
- Since:
- API version 5
-
Method Summary
Modifier and TypeMethodDescriptionvoidFinishes the previous bundle, and if it was not inside an other bundle, it will send the message directly.voidsendMessage(String address, Object... args) Supported object types: - Integer for int32 - Long for int64 - Float for float - Double for double - null for nil - Boolean for true and false - String for string - byte[] for blobvoidStarts an OscBundle.
-
Method Details
-
startBundle
Starts an OscBundle.- Throws:
IOException
-
sendMessage
void sendMessage(String address, Object... args) throws IOException, OscInvalidArgumentTypeException Supported object types: - Integer for int32 - Long for int64 - Float for float - Double for double - null for nil - Boolean for true and false - String for string - byte[] for blob -
endBundle
Finishes the previous bundle, and if it was not inside an other bundle, it will send the message directly.- Throws:
IOException
-