Method | Description | |
---|---|---|
Cancel ( ) : void | ||
OscMessageToPacket ( OscMessage, oscM, byte packet, int length ) : int |
Creates a packet (an array of bytes) from a single OscMessage. A convenience method, not requiring a start index. |
|
OscMessageToString ( OscMessage, message ) : string |
General static helper that returns a string suitable for printing representing the supplied OscMessage.
|
|
OscMessagesToPacket ( ArrayList messages, byte packet, int length ) : int |
Puts an array of OscMessages into a packet (byte[]).
|
|
PacketToOscMessages ( byte packet, int length ) : ArrayList |
Takes a packet (byte[]) and turns it into a list of OscMessages.
|
|
Send ( ArrayList oms ) : void |
Sends a list of OSC Messages. Internally takes the OscMessage objects and serializes them into a byte[] suitable for sending to the PacketExchange.
|
|
Send ( OscMessage, oscMessage ) : void |
Send an individual OSC message. Internally takes the OscMessage object and serializes it into a byte[] suitable for sending to the PacketIO.
|
|
SetAddressHandler ( string key, OscMessageHandler ah ) : void |
Set the method to call back on when a message with the specified address is received. The method needs to have the OscMessageHandler signature - i.e. void amh( OscMessage oscM )
|
|
SetAllMessageHandler ( OscMessageHandler amh ) : void |
Set the method to call back on when any message is received. The method needs to have the OscMessageHandler signature - i.e. void amh( OscMessage oscM )
|
|
StringToOscMessage ( string message ) : OscMessage, |
Creates an OscMessage from a string - extracts the address and determines each of the values.
|
|
init ( UDPPacketIO, oscPacketIO ) : void |
Method | Description | |
---|---|---|
Dump ( byte packet, int start, int length ) : string | ||
ExtractMessage ( ArrayList messages, byte packet, int start, int length ) : int |
Extracts a messages from a packet.
|
|
ExtractMessages ( ArrayList messages, byte packet, int start, int length ) : int |
Receive a raw packet of bytes and extract OscMessages from it. Used internally. The packet may contain a OSC message or a bundle of messages. |
|
ExtractString ( byte packet, int start, int length ) : string |
Removes a string from a packet. Used internally.
|
|
InsertString ( string s, byte packet, int start, int length ) : int |
Inserts a string, correctly padded into a packet. Used internally.
|
|
OscMessageToPacket ( OscMessage, oscM, byte packet, int start, int length ) : int |
Creates an array of bytes from a single OscMessage. Used internally. Can specify where in the array of bytes the OscMessage should be put. |
|
PadSize ( int rawSize ) : int |
Takes a length and returns what it would be if padded to the nearest 4 bytes.
|
|
Read ( ) : void |
Read Thread. Loops waiting for packets. When a packet is received, it is dispatched to any waiting All Message Handler. Also, the address is looked up and any matching handler is called.
|
|
Start ( ) : void |
public static OscMessageToPacket ( OscMessage, oscM, byte packet, int length ) : int | ||
oscM | OscMessage, | The OscMessage to be returned as a packet. |
packet | byte | The packet to be populated with the OscMessage. |
length | int | The usable size of the array of bytes. |
return | int |
public static OscMessageToString ( OscMessage, message ) : string | ||
message | OscMessage, | The OscMessage to be stringified. |
return | string |
public static OscMessagesToPacket ( ArrayList messages, byte packet, int length ) : int | ||
messages | ArrayList | An ArrayList of OscMessages. |
packet | byte | An array of bytes to be populated with the OscMessages. |
length | int | The size of the array of bytes. |
return | int |
public static PacketToOscMessages ( byte packet, int length ) : ArrayList | ||
packet | byte | The packet to be parsed. |
length | int | The length of the packet. |
return | ArrayList |
public Send ( ArrayList oms ) : void | ||
oms | ArrayList | The OSC Message to send. |
return | void |
public Send ( OscMessage, oscMessage ) : void | ||
oscMessage | OscMessage, | The OSC Message to send. |
return | void |
public SetAddressHandler ( string key, OscMessageHandler ah ) : void | ||
key | string | Address string to be matched |
ah | OscMessageHandler | The method to call back on. |
return | void |
public SetAllMessageHandler ( OscMessageHandler amh ) : void | ||
amh | OscMessageHandler | The method to call back on. |
return | void |
public static StringToOscMessage ( string message ) : OscMessage, | ||
message | string | The string to be turned into an OscMessage |
return | OscMessage, |
public init ( UDPPacketIO, oscPacketIO ) : void | ||
oscPacketIO | UDPPacketIO, | |
return | void |