From 589e6c881bd2cf11e8615e9c1bf8cb4012293bad Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 31 Dec 2015 03:34:08 +0100 Subject: libraries/oscP5: Adding oscP5 library for OSC capabilities. --- libraries/oscP5/reference/allclasses-frame.html | 99 ++ libraries/oscP5/reference/allclasses-noframe.html | 99 ++ libraries/oscP5/reference/constant-values.html | 446 +++++ libraries/oscP5/reference/deprecated-list.html | 229 +++ libraries/oscP5/reference/help-doc.html | 217 +++ libraries/oscP5/reference/index-all.html | 1692 ++++++++++++++++++ libraries/oscP5/reference/index.html | 39 + .../oscP5/reference/netP5/AbstractMulticast.html | 560 ++++++ .../oscP5/reference/netP5/AbstractTcpClient.html | 869 ++++++++++ .../oscP5/reference/netP5/AbstractTcpServer.html | 675 ++++++++ .../oscP5/reference/netP5/AbstractUdpClient.html | 408 +++++ .../oscP5/reference/netP5/AbstractUdpServer.html | 440 +++++ libraries/oscP5/reference/netP5/Bytes.html | 906 ++++++++++ libraries/oscP5/reference/netP5/Logger.html | 613 +++++++ libraries/oscP5/reference/netP5/Multicast.html | 428 +++++ libraries/oscP5/reference/netP5/NetAddress.html | 422 +++++ .../oscP5/reference/netP5/NetAddressList.html | 460 +++++ libraries/oscP5/reference/netP5/NetInfo.html | 334 ++++ libraries/oscP5/reference/netP5/NetListener.html | 223 +++ libraries/oscP5/reference/netP5/NetMessage.html | 386 +++++ libraries/oscP5/reference/netP5/NetP5.html | 274 +++ libraries/oscP5/reference/netP5/NetStatus.html | 434 +++++ libraries/oscP5/reference/netP5/StringUtils.html | 1008 +++++++++++ libraries/oscP5/reference/netP5/TcpClient.html | 473 +++++ libraries/oscP5/reference/netP5/TcpPacket.html | 311 ++++ .../oscP5/reference/netP5/TcpPacketListener.html | 247 +++ libraries/oscP5/reference/netP5/TcpServer.html | 463 +++++ libraries/oscP5/reference/netP5/UdpClient.html | 266 +++ .../oscP5/reference/netP5/UdpPacketListener.html | 213 +++ libraries/oscP5/reference/netP5/UdpServer.html | 411 +++++ libraries/oscP5/reference/netP5/package-frame.html | 85 + .../oscP5/reference/netP5/package-summary.html | 255 +++ libraries/oscP5/reference/netP5/package-tree.html | 172 ++ libraries/oscP5/reference/oscP5/OscArgument.html | 1160 +++++++++++++ libraries/oscP5/reference/oscP5/OscBundle.html | 765 +++++++++ .../oscP5/reference/oscP5/OscEventListener.html | 223 +++ libraries/oscP5/reference/oscP5/OscIn.html | 434 +++++ libraries/oscP5/reference/oscP5/OscMessage.html | 1447 ++++++++++++++++ libraries/oscP5/reference/oscP5/OscNetManager.html | 760 ++++++++ libraries/oscP5/reference/oscP5/OscP5.html | 1807 ++++++++++++++++++++ libraries/oscP5/reference/oscP5/OscPacket.html | 357 ++++ libraries/oscP5/reference/oscP5/OscPatcher.html | 192 +++ libraries/oscP5/reference/oscP5/OscPlug.html | 393 +++++ libraries/oscP5/reference/oscP5/OscProperties.html | 799 +++++++++ libraries/oscP5/reference/oscP5/OscStatus.html | 448 +++++ libraries/oscP5/reference/oscP5/package-frame.html | 63 + .../oscP5/reference/oscP5/package-summary.html | 211 +++ libraries/oscP5/reference/oscP5/package-tree.html | 164 ++ libraries/oscP5/reference/overview-frame.html | 44 + libraries/oscP5/reference/overview-summary.html | 158 ++ libraries/oscP5/reference/overview-tree.html | 179 ++ libraries/oscP5/reference/package-list | 2 + libraries/oscP5/reference/resources/inherit.gif | Bin 0 -> 57 bytes libraries/oscP5/reference/stylesheet.css | 310 ++++ 54 files changed, 24073 insertions(+) create mode 100644 libraries/oscP5/reference/allclasses-frame.html create mode 100644 libraries/oscP5/reference/allclasses-noframe.html create mode 100644 libraries/oscP5/reference/constant-values.html create mode 100644 libraries/oscP5/reference/deprecated-list.html create mode 100644 libraries/oscP5/reference/help-doc.html create mode 100644 libraries/oscP5/reference/index-all.html create mode 100644 libraries/oscP5/reference/index.html create mode 100644 libraries/oscP5/reference/netP5/AbstractMulticast.html create mode 100644 libraries/oscP5/reference/netP5/AbstractTcpClient.html create mode 100644 libraries/oscP5/reference/netP5/AbstractTcpServer.html create mode 100644 libraries/oscP5/reference/netP5/AbstractUdpClient.html create mode 100644 libraries/oscP5/reference/netP5/AbstractUdpServer.html create mode 100644 libraries/oscP5/reference/netP5/Bytes.html create mode 100644 libraries/oscP5/reference/netP5/Logger.html create mode 100644 libraries/oscP5/reference/netP5/Multicast.html create mode 100644 libraries/oscP5/reference/netP5/NetAddress.html create mode 100644 libraries/oscP5/reference/netP5/NetAddressList.html create mode 100644 libraries/oscP5/reference/netP5/NetInfo.html create mode 100644 libraries/oscP5/reference/netP5/NetListener.html create mode 100644 libraries/oscP5/reference/netP5/NetMessage.html create mode 100644 libraries/oscP5/reference/netP5/NetP5.html create mode 100644 libraries/oscP5/reference/netP5/NetStatus.html create mode 100644 libraries/oscP5/reference/netP5/StringUtils.html create mode 100644 libraries/oscP5/reference/netP5/TcpClient.html create mode 100644 libraries/oscP5/reference/netP5/TcpPacket.html create mode 100644 libraries/oscP5/reference/netP5/TcpPacketListener.html create mode 100644 libraries/oscP5/reference/netP5/TcpServer.html create mode 100644 libraries/oscP5/reference/netP5/UdpClient.html create mode 100644 libraries/oscP5/reference/netP5/UdpPacketListener.html create mode 100644 libraries/oscP5/reference/netP5/UdpServer.html create mode 100644 libraries/oscP5/reference/netP5/package-frame.html create mode 100644 libraries/oscP5/reference/netP5/package-summary.html create mode 100644 libraries/oscP5/reference/netP5/package-tree.html create mode 100644 libraries/oscP5/reference/oscP5/OscArgument.html create mode 100644 libraries/oscP5/reference/oscP5/OscBundle.html create mode 100644 libraries/oscP5/reference/oscP5/OscEventListener.html create mode 100644 libraries/oscP5/reference/oscP5/OscIn.html create mode 100644 libraries/oscP5/reference/oscP5/OscMessage.html create mode 100644 libraries/oscP5/reference/oscP5/OscNetManager.html create mode 100644 libraries/oscP5/reference/oscP5/OscP5.html create mode 100644 libraries/oscP5/reference/oscP5/OscPacket.html create mode 100644 libraries/oscP5/reference/oscP5/OscPatcher.html create mode 100644 libraries/oscP5/reference/oscP5/OscPlug.html create mode 100644 libraries/oscP5/reference/oscP5/OscProperties.html create mode 100644 libraries/oscP5/reference/oscP5/OscStatus.html create mode 100644 libraries/oscP5/reference/oscP5/package-frame.html create mode 100644 libraries/oscP5/reference/oscP5/package-summary.html create mode 100644 libraries/oscP5/reference/oscP5/package-tree.html create mode 100644 libraries/oscP5/reference/overview-frame.html create mode 100644 libraries/oscP5/reference/overview-summary.html create mode 100644 libraries/oscP5/reference/overview-tree.html create mode 100644 libraries/oscP5/reference/package-list create mode 100644 libraries/oscP5/reference/resources/inherit.gif create mode 100644 libraries/oscP5/reference/stylesheet.css (limited to 'libraries/oscP5/reference') diff --git a/libraries/oscP5/reference/allclasses-frame.html b/libraries/oscP5/reference/allclasses-frame.html new file mode 100644 index 0000000..092fd03 --- /dev/null +++ b/libraries/oscP5/reference/allclasses-frame.html @@ -0,0 +1,99 @@ + + + + + + +All Classes (Javadocs: oscP5) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractMulticast +
+AbstractTcpClient +
+AbstractTcpServer +
+AbstractUdpClient +
+AbstractUdpServer +
+Bytes +
+Logger +
+Multicast +
+NetAddress +
+NetAddressList +
+NetInfo +
+NetListener +
+NetMessage +
+NetP5 +
+NetStatus +
+OscArgument +
+OscBundle +
+OscEventListener +
+OscIn +
+OscMessage +
+OscNetManager +
+OscP5 +
+OscPacket +
+OscPatcher +
+OscPlug +
+OscProperties +
+OscStatus +
+StringUtils +
+TcpClient +
+TcpPacket +
+TcpPacketListener +
+TcpServer +
+UdpClient +
+UdpPacketListener +
+UdpServer +
+
+ + + diff --git a/libraries/oscP5/reference/allclasses-noframe.html b/libraries/oscP5/reference/allclasses-noframe.html new file mode 100644 index 0000000..c2a3e53 --- /dev/null +++ b/libraries/oscP5/reference/allclasses-noframe.html @@ -0,0 +1,99 @@ + + + + + + +All Classes (Javadocs: oscP5) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractMulticast +
+AbstractTcpClient +
+AbstractTcpServer +
+AbstractUdpClient +
+AbstractUdpServer +
+Bytes +
+Logger +
+Multicast +
+NetAddress +
+NetAddressList +
+NetInfo +
+NetListener +
+NetMessage +
+NetP5 +
+NetStatus +
+OscArgument +
+OscBundle +
+OscEventListener +
+OscIn +
+OscMessage +
+OscNetManager +
+OscP5 +
+OscPacket +
+OscPatcher +
+OscPlug +
+OscProperties +
+OscStatus +
+StringUtils +
+TcpClient +
+TcpPacket +
+TcpPacketListener +
+TcpServer +
+UdpClient +
+UdpPacketListener +
+UdpServer +
+
+ + + diff --git a/libraries/oscP5/reference/constant-values.html b/libraries/oscP5/reference/constant-values.html new file mode 100644 index 0000000..e505a0b --- /dev/null +++ b/libraries/oscP5/reference/constant-values.html @@ -0,0 +1,446 @@ + + + + + + +Constant Field Values (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+netP5.*
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
netP5.AbstractTcpClient
+public static final intMODE_NEWLINE2
+public static final intMODE_READLINE0
+public static final intMODE_STREAM3
+public static final intMODE_TERMINATED1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
netP5.AbstractTcpServer
+public static final intMODE_NEWLINE2
+public static final intMODE_READLINE0
+public static final intMODE_STREAM3
+public static final intMODE_TERMINATED1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
netP5.Logger
+public static final intALL5
+public static final intDEBUG4
+public static final intERROR0
+public static final intINFO3
+public static final intOFF1
+public static final intON0
+public static final intPROCESS2
+public static final intWARNING1
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
netP5.NetP5
+public static final booleanDEBUGtrue
+public static final intMULTICAST1
+public static final intTCP2
+public static final intUDP0
+public static final StringVERSION"0.9.9"
+ +

+ +

+ + + + + +
+oscP5.*
+ +

+ + + + + + + + + + + + +
oscP5.OscNetManager
+public static final intNONE0
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
oscP5.OscP5
+public static final intMULTICAST1
+public static final booleanOFFfalse
+public static final booleanONtrue
+public static final intTCP2
+public static final intUDP0
+public static final StringVERSION"0.9.9"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
oscP5.OscProperties
+public static final intMULTICAST1
+public static final booleanOFFfalse
+public static final booleanONtrue
+public static final intTCP2
+public static final intUDP0
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/deprecated-list.html b/libraries/oscP5/reference/deprecated-list.html new file mode 100644 index 0000000..1493777 --- /dev/null +++ b/libraries/oscP5/reference/deprecated-list.html @@ -0,0 +1,229 @@ + + + + + + +Deprecated List (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + +
+Deprecated Classes
oscP5.OscIn +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Deprecated Methods
oscP5.OscP5.disconnectFromTEMP() +
+            
oscP5.OscP5.flush(byte[], String, int) +
+            
oscP5.OscP5.flush(OscMessage, String, int) +
+            
netP5.AbstractTcpClient.netaddress() +
+            
oscP5.OscPacket.netaddress() +
+            
oscP5.OscP5.newBundle() +
+            
oscP5.OscP5.newMsg(String) +
+            
oscP5.OscP5.send(OscPacket, String, int) +
+            
+  +

+ + + + + + + + + + + +
+Deprecated Constructors
oscP5.OscP5(Object, String, int) +
+            
oscP5.OscP5(Object, String, int, int, String) +
+            
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/help-doc.html b/libraries/oscP5/reference/help-doc.html new file mode 100644 index 0000000..e23a628 --- /dev/null +++ b/libraries/oscP5/reference/help-doc.html @@ -0,0 +1,217 @@ + + + + + + +API Help (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/index-all.html b/libraries/oscP5/reference/index-all.html new file mode 100644 index 0000000..17407d9 --- /dev/null +++ b/libraries/oscP5/reference/index-all.html @@ -0,0 +1,1692 @@ + + + + + + +Index (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I L M N O P R S T U V W
+

+A

+
+
AbstractMulticast - Class in netP5
 
AbstractMulticast(UdpPacketListener, String, int, int) - +Constructor for class netP5.AbstractMulticast +
  +
AbstractMulticast(UdpPacketListener, String, int) - +Constructor for class netP5.AbstractMulticast +
  +
AbstractTcpClient - Class in netP5
 
AbstractTcpClient(TcpPacketListener, String, int) - +Constructor for class netP5.AbstractTcpClient +
  +
AbstractTcpClient(String, int) - +Constructor for class netP5.AbstractTcpClient +
  +
AbstractTcpClient(TcpPacketListener, String, int, int) - +Constructor for class netP5.AbstractTcpClient +
  +
AbstractTcpClient(String, int, int) - +Constructor for class netP5.AbstractTcpClient +
  +
AbstractTcpClient(AbstractTcpServer, Socket, TcpPacketListener, int, int) - +Constructor for class netP5.AbstractTcpClient +
  +
AbstractTcpServer - Class in netP5
 
AbstractTcpServer(int, int) - +Constructor for class netP5.AbstractTcpServer +
  +
AbstractTcpServer(TcpPacketListener, int, int) - +Constructor for class netP5.AbstractTcpServer +
  +
AbstractUdpClient - Class in netP5
 
AbstractUdpClient() - +Constructor for class netP5.AbstractUdpClient +
  +
AbstractUdpClient(String, int) - +Constructor for class netP5.AbstractUdpClient +
  +
AbstractUdpServer - Class in netP5
 
AbstractUdpServer(UdpPacketListener, int, int) - +Constructor for class netP5.AbstractUdpServer +
create a new UdpServer +
add(NetAddress) - +Method in class netP5.NetAddressList +
  +
add(String, int) - +Method in class netP5.NetAddressList +
  +
add(OscMessage) - +Method in class oscP5.OscBundle +
add an osc message to the osc bundle. +
add() - +Method in class oscP5.OscMessage +
add values to an osc message. +
add(int) - +Method in class oscP5.OscMessage +
  +
add(String) - +Method in class oscP5.OscMessage +
  +
add(float) - +Method in class oscP5.OscMessage +
  +
add(double) - +Method in class oscP5.OscMessage +
  +
add(boolean) - +Method in class oscP5.OscMessage +
  +
add(Boolean) - +Method in class oscP5.OscMessage +
  +
add(Integer) - +Method in class oscP5.OscMessage +
  +
add(Float) - +Method in class oscP5.OscMessage +
  +
add(Double) - +Method in class oscP5.OscMessage +
  +
add(Character) - +Method in class oscP5.OscMessage +
  +
add(char) - +Method in class oscP5.OscMessage +
  +
add(int, int, int, int) - +Method in class oscP5.OscMessage +
  +
add(int[]) - +Method in class oscP5.OscMessage +
  +
add(char[]) - +Method in class oscP5.OscMessage +
  +
add(float[]) - +Method in class oscP5.OscMessage +
  +
add(String[]) - +Method in class oscP5.OscMessage +
  +
add(byte[]) - +Method in class oscP5.OscMessage +
  +
add(Object[]) - +Method in class oscP5.OscMessage +
  +
addArguments(Object[]) - +Method in class oscP5.OscMessage +
add a list of arguments to an exisiting set of arguments. +
addListener(NetListener) - +Method in class netP5.Multicast +
  +
addListener(NetListener) - +Method in class netP5.TcpServer +
  +
addListener(NetListener) - +Method in class netP5.UdpServer +
add a listener to the udp server. +
addListener(OscEventListener) - +Method in class oscP5.OscP5 +
  +
address() - +Method in class netP5.NetAddress +
returns the remote ip address as string +
address() - +Method in class netP5.NetMessage +
  +
address() - +Method in class oscP5.OscPacket +
  +
addrInt() - +Method in class oscP5.OscMessage +
returns the address pattern of the osc message as int. +
addrPattern() - +Method in class oscP5.OscMessage +
  +
addTcpListener(TcpPacketListener) - +Method in class oscP5.OscNetManager +
  +
addUdpListener(UdpPacketListener) - +Method in class oscP5.OscNetManager +
  +
ALL - +Static variable in class netP5.Logger +
  +
append(byte[], byte[]) - +Static method in class netP5.Bytes +
  +
append(byte[], byte[], byte[]) - +Static method in class netP5.Bytes +
  +
areEqual(byte[], byte[]) - +Static method in class netP5.Bytes +
  +
arguments() - +Method in class oscP5.OscMessage +
  +
arrayToString(String[]) - +Static method in class netP5.StringUtils +
  +
arrayToString(String[], int, int) - +Static method in class netP5.StringUtils +
  +
+
+

+B

+
+
ban(String) - +Method in class netP5.AbstractTcpServer +
ban an IP address from the server. +
blobValue() - +Method in class oscP5.OscArgument +
get the byte array (blob) of the osc argument. +
booleanValue() - +Method in class oscP5.OscArgument +
get the boolean value of the osc argument. +
Bytes - Class in netP5
 
Bytes() - +Constructor for class netP5.Bytes +
  +
bytesValue() - +Method in class oscP5.OscArgument +
get the byte array of the osc argument. +
+
+

+C

+
+
centerJustify(String, int) - +Static method in class netP5.StringUtils +
Creates a string of the given width with the given string left justified + (padded by an appropriate number of spaces in front and after it). +
charValue() - +Method in class oscP5.OscArgument +
get the char value of the osc argument. +
checkAddrPattern(String) - +Method in class oscP5.OscMessage +
check if an address pattern equals a specific address pattern + you are looking for. +
checkMethod(OscMessage, boolean) - +Method in class oscP5.OscPlug +
  +
checkType(String) - +Method in class oscP5.OscPlug +
  +
checkTypetag(String) - +Method in class oscP5.OscMessage +
  +
clear() - +Method in class oscP5.OscBundle +
clear and reset the osc bundle for reusing. +
clear() - +Method in class oscP5.OscMessage +
clear and reset an OscMessage for reuse. +
clearArguments() - +Method in class oscP5.OscMessage +
clears the arguments in a message, + but keeps the address the address pattern. +
CLIENT_CLOSED - +Static variable in class netP5.NetStatus +
  +
CLIENT_CLOSED - +Static variable in class oscP5.OscStatus +
  +
close() - +Method in class netP5.AbstractMulticast +
  +
connect(NetAddress, String, String[]) - +Method in class oscP5.OscP5 +
  +
CONNECTION_CLOSED - +Static variable in class netP5.NetStatus +
  +
CONNECTION_CLOSED - +Static variable in class oscP5.OscStatus +
  +
CONNECTION_FAILED - +Static variable in class netP5.NetStatus +
  +
CONNECTION_FAILED - +Static variable in class oscP5.OscStatus +
  +
CONNECTION_REFUSED - +Static variable in class netP5.NetStatus +
  +
CONNECTION_REFUSED - +Static variable in class oscP5.OscStatus +
  +
CONNECTION_TERMINATED - +Static variable in class netP5.NetStatus +
  +
CONNECTION_TERMINATED - +Static variable in class oscP5.OscStatus +
  +
contains(NetAddress) - +Method in class netP5.NetAddressList +
  +
contains(String, int) - +Method in class netP5.NetAddressList +
  +
copy(byte[], int) - +Static method in class netP5.Bytes +
  +
copy(byte[], int, int) - +Static method in class netP5.Bytes +
  +
+
+

+D

+
+
datagramSize() - +Method in class oscP5.OscProperties +
returns the current size of the datagram bytebuffer. +
DEBUG - +Static variable in class netP5.Logger +
  +
DEBUG - +Static variable in interface netP5.NetP5 +
  +
DEFAULT - +Static variable in class netP5.NetStatus +
  +
DEFAULT - +Static variable in class oscP5.OscStatus +
  +
disconnect(NetAddress) - +Method in class oscP5.OscP5 +
  +
disconnectFromTEMP() - +Method in class oscP5.OscP5 +
Deprecated.   +
dispose() - +Method in class netP5.AbstractMulticast +
dispose the multicastSocket. +
dispose() - +Method in class netP5.AbstractTcpClient +
stop and dispose a tcp client. +
dispose() - +Method in class netP5.AbstractTcpServer +
kill the server. +
dispose() - +Method in class netP5.AbstractUdpServer +
stop the UDP server, clean up and delete its reference. +
dispose() - +Method in class oscP5.OscP5 +
  +
doubleValue() - +Method in class oscP5.OscArgument +
get the double value of the osc argument. +
duplicate(String, int) - +Static method in class netP5.StringUtils +
Returns a String with the source String copied the specified number of + times. +
+
+

+E

+
+
equals(NetAddress) - +Method in class netP5.AbstractTcpClient +
  +
equals(TcpClient) - +Method in class netP5.AbstractTcpClient +
  +
ERROR - +Static variable in class netP5.Logger +
  +
ERROR - +Static variable in class netP5.NetStatus +
  +
ERROR - +Static variable in class oscP5.OscStatus +
  +
eventMethod() - +Method in class oscP5.OscProperties +
  +
explode(String[], int[]) - +Static method in class netP5.StringUtils +
Splits every String in an array at the specified lengths. +
explode(String, int[]) - +Static method in class netP5.StringUtils +
Splits a string at the specified lengths and returns an array of Strings. +
explode(String) - +Static method in class netP5.StringUtils +
Splits a string into an array with a space as delimiter. +
explode(String, String) - +Static method in class netP5.StringUtils +
Splits a string into an array with the specified delimiter. +
+
+

+F

+
+
flags - +Static variable in class netP5.Logger +
  +
floatValue() - +Method in class oscP5.OscArgument +
get the float value of the osc argument. +
flush(OscMessage, NetAddress) - +Static method in class oscP5.OscP5 +
a static method to send an OscMessage straight out of the box without having to instantiate + oscP5. +
flush(OscPacket, NetAddress) - +Static method in class oscP5.OscP5 +
  +
flush(String, Object[], NetAddress) - +Static method in class oscP5.OscP5 +
  +
flush(byte[], NetAddress) - +Static method in class oscP5.OscP5 +
  +
flush(byte[], String, int) - +Static method in class oscP5.OscP5 +
Deprecated.   +
flush(OscMessage, String, int) - +Static method in class oscP5.OscP5 +
Deprecated.   +
+
+

+G

+
+
get(String, int) - +Method in class netP5.NetAddressList +
  +
get(int) - +Method in class netP5.NetAddressList +
  +
get(int) - +Method in class oscP5.OscMessage +
get a value at a specific position in the osc message. +
getAddrPatternAsBytes() - +Method in class oscP5.OscMessage +
  +
getAsString(Object[]) - +Static method in class netP5.Bytes +
converts an object array into a String that is formated like a list +
getAsString(byte[]) - +Static method in class netP5.Bytes +
  +
getBlob(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getBoolean(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getBytes() - +Method in class oscP5.OscBundle +
  +
getBytes() - +Method in class oscP5.OscMessage +
  +
getBytes() - +Method in class oscP5.OscPacket +
  +
getChar(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getClient(int) - +Method in class netP5.AbstractTcpServer +
get a client at a specific position the client list. +
getClients() - +Method in class netP5.AbstractTcpServer +
get a list of all connected clients. +
getData() - +Method in class netP5.NetMessage +
get the data of the message as bytes. +
getData() - +Method in class netP5.TcpPacket +
  +
getDatagramPacket() - +Method in class netP5.NetMessage +
  +
getDataList() - +Method in class oscP5.OscIn +
Deprecated. this is only for christian's and jens' table communication with vvvv. +
getFloat(String) - +Static method in class netP5.StringUtils +
  +
getFloat(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getHostAddress() - +Static method in class netP5.NetInfo +
  +
getInt(String) - +Static method in class netP5.StringUtils +
  +
getInt(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getListener(int) - +Method in class netP5.Multicast +
  +
getListener(int) - +Method in class netP5.TcpServer +
  +
getListener(int) - +Method in class netP5.UdpServer +
  +
getListeners() - +Method in class netP5.Multicast +
  +
getListeners() - +Method in class netP5.TcpServer +
  +
getListeners() - +Method in class netP5.UdpServer +
  +
getMessage(int) - +Method in class oscP5.OscBundle +
request an osc message inside the osc bundle array, +
getMethod() - +Method in class oscP5.OscPlug +
  +
getMidi(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getMidiBytes(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getObject() - +Method in class oscP5.OscPlug +
  +
getStackTrace(Throwable) - +Static method in class netP5.StringUtils +
Prints the stacktrace to a buffer and returns the buffer as a String. +
getString() - +Method in class netP5.AbstractTcpClient +
  +
getString() - +Method in class netP5.NetMessage +
get the data the message as string. +
getString() - +Method in class netP5.TcpPacket +
  +
getString(int) - +Method in class oscP5.OscIn +
Deprecated.   +
getStringBuffer() - +Method in class netP5.AbstractTcpClient +
  +
getStringBuffer() - +Method in class netP5.TcpPacket +
  +
getTcpConnection() - +Method in class netP5.TcpPacket +
  +
getTcpPacket() - +Method in class netP5.NetMessage +
  +
getTime() - +Static method in class netP5.Logger +
  +
getTypetagAsBytes() - +Method in class oscP5.OscMessage +
  +
+
+

+H

+
+
handleInput() - +Method in class netP5.AbstractTcpClient +
  +
handleInput(TcpPacket, int) - +Method in class netP5.AbstractTcpServer +
  +
handleInput() - +Method in class netP5.TcpClient +
  +
handleInput(TcpPacket, int) - +Method in class netP5.TcpServer +
  +
handleStatus(int) - +Method in class netP5.AbstractTcpClient +
  +
handleStatus(int) - +Method in class netP5.TcpClient +
  +
+
+

+I

+
+
id() - +Method in class netP5.NetStatus +
  +
id() - +Method in class oscP5.OscStatus +
  +
implode(Object[], String) - +Static method in class netP5.StringUtils +
Combines an array to a string, using the specified delimiter. +
implode(Object[]) - +Static method in class netP5.StringUtils +
Combines an array to a string, using a comma and a space as delimiter. +
inetaddress() - +Method in class netP5.NetAddress +
  +
inetAddress() - +Method in class netP5.NetMessage +
  +
INFO - +Static variable in class netP5.Logger +
  +
intValue() - +Method in class oscP5.OscArgument +
get the int value of the osc argument. +
ip() - +Method in class oscP5.OscP5 +
  +
isBroadcast() - +Method in class oscP5.OscP5 +
  +
isEmpty(String) - +Static method in class netP5.StringUtils +
Checks if a String is empty or null. +
isPlugged() - +Method in class oscP5.OscMessage +
  +
isvalid() - +Method in class netP5.NetAddress +
check if the netAddress is valid. +
+
+

+L

+
+
lan() - +Static method in class netP5.NetInfo +
  +
left(String, String) - +Static method in class netP5.StringUtils +
Returns the substring to the left of the specified substring in the + specified String, starting from the left. +
leftBack(String, String) - +Static method in class netP5.StringUtils +
Returns the substring to the left of the specified substring in the + specified String, starting from the right. +
leftJustify(String, int) - +Static method in class netP5.StringUtils +
Creates a string of the given width with the given string left justified + (followed by an appropriate number of spaces). +
list() - +Method in class netP5.NetAddressList +
  +
listener() - +Method in class netP5.AbstractTcpClient +
  +
listeners() - +Method in class oscP5.OscP5 +
  +
listeners() - +Method in class oscP5.OscProperties +
  +
listeningPort() - +Method in class oscP5.OscProperties +
returns the port number currently used to receive osc packets. +
Logger - Class in netP5
 
Logger() - +Constructor for class netP5.Logger +
  +
longValue() - +Method in class oscP5.OscArgument +
get the long value of the osc argument. +
loopback() - +Method in class netP5.AbstractMulticast +
get the current loopback mode. +
+
+

+M

+
+
main(String[]) - +Static method in class netP5.NetInfo +
  +
makeBlob(byte[]) - +Static method in class oscP5.OscMessage +
  +
merge(byte[], byte[], int, int, int) - +Static method in class netP5.Bytes +
  +
merge(byte[], byte[], int) - +Static method in class netP5.Bytes +
  +
merge(byte[], byte[]) - +Static method in class netP5.Bytes +
  +
merge(byte[], byte[], int, int) - +Static method in class netP5.Bytes +
  +
method - +Variable in class oscP5.OscPlug +
  +
middle(String, String, String) - +Static method in class netP5.StringUtils +
Returns the substring between two substrings. +
middle(String, int, int) - +Static method in class netP5.StringUtils +
Returns a substring of a String, starting from specified index and with + specified length. +
midiValue() - +Method in class oscP5.OscArgument +
  +
mode() - +Method in class netP5.AbstractTcpClient +
get the mode of the terminator. +
MODE_NEWLINE - +Static variable in class netP5.AbstractTcpClient +
terminator is newline. +
MODE_NEWLINE - +Static variable in class netP5.AbstractTcpServer +
  +
MODE_READLINE - +Static variable in class netP5.AbstractTcpClient +
terminator is readline. +
MODE_READLINE - +Static variable in class netP5.AbstractTcpServer +
  +
MODE_STREAM - +Static variable in class netP5.AbstractTcpClient +
no terminator required, packets are sent via + a tcp stream. +
MODE_STREAM - +Static variable in class netP5.AbstractTcpServer +
  +
MODE_TERMINATED - +Static variable in class netP5.AbstractTcpClient +
terminator is terminated, by default this is character '\0' + and can be set with setTerminator +
MODE_TERMINATED - +Static variable in class netP5.AbstractTcpServer +
  +
Multicast - Class in netP5
Multicast is a method of forwarding IP datagrams to a group of interested receivers.
Multicast(Object, String, int, int) - +Constructor for class netP5.Multicast +
create a new instance of Multicast. +
Multicast(Object, String, int) - +Constructor for class netP5.Multicast +
  +
Multicast(UdpPacketListener, String, int, int) - +Constructor for class netP5.Multicast +
  +
Multicast(UdpPacketListener, String, int) - +Constructor for class netP5.Multicast +
  +
MULTICAST - +Static variable in interface netP5.NetP5 +
  +
MULTICAST - +Static variable in class oscP5.OscP5 +
a static variable used when creating an oscP5 instance with a sepcified network protocol. +
MULTICAST - +Static variable in class oscP5.OscProperties +
  +
+
+

+N

+
+
name - +Variable in class netP5.NetAddress +
  +
name() - +Method in class netP5.TcpClient +
  +
netAddress() - +Method in class netP5.AbstractTcpClient +
  +
netaddress() - +Method in class netP5.AbstractTcpClient +
Deprecated.   +
NetAddress - Class in netP5
NetAddress is an Object that contains an inetaddress + of an remote internet address, consisting of an + ip address and a port number.
NetAddress(String, int) - +Constructor for class netP5.NetAddress +
  +
NetAddress(NetAddress) - +Constructor for class netP5.NetAddress +
  +
NetAddress(InetAddress, int) - +Constructor for class netP5.NetAddress +
  +
netAddress() - +Method in class oscP5.OscPacket +
  +
netaddress() - +Method in class oscP5.OscPacket +
Deprecated.   +
NetAddressList - Class in netP5
NetAddressList is an arraylist of netaddresses.
NetAddressList() - +Constructor for class netP5.NetAddressList +
  +
netEvent(NetMessage) - +Method in interface netP5.NetListener +
  +
NetInfo - Class in netP5
some description
NetInfo() - +Constructor for class netP5.NetInfo +
  +
netInfo() - +Method in class oscP5.OscP5 +
netinfo() returns an instance of a NetInfo Object from which you can get LAN and WAN + information. +
NetListener - Interface in netP5
 
NetMessage - Class in netP5
 
netP5 - package netP5
 
NetP5 - Interface in netP5
 
netStatus(NetStatus) - +Method in interface netP5.NetListener +
  +
NetStatus - Class in netP5
 
NetStatus(int) - +Constructor for class netP5.NetStatus +
  +
networkProtocol() - +Method in class oscP5.OscProperties +
returns the network protocol being used to transmit osc packets. +
newBundle() - +Method in class oscP5.OscP5 +
Deprecated.   +
newMsg(String) - +Method in class oscP5.OscP5 +
Deprecated.   +
NONE - +Static variable in class oscP5.OscNetManager +
  +
now() - +Static method in class oscP5.OscBundle +
returns the current time in milliseconds. +
+
+

+O

+
+
OFF - +Static variable in class netP5.Logger +
  +
OFF - +Static variable in class oscP5.OscP5 +
  +
OFF - +Static variable in class oscP5.OscProperties +
  +
ON - +Static variable in class netP5.Logger +
  +
ON - +Static variable in class oscP5.OscP5 +
  +
ON - +Static variable in class oscP5.OscProperties +
  +
OscArgument - Class in oscP5
an osc argument contains one value of values from a received osc message.
OscArgument() - +Constructor for class oscP5.OscArgument +
  +
OscBundle - Class in oscP5
Osc Bundles are collections of Osc Messages.
OscBundle() - +Constructor for class oscP5.OscBundle +
instantiate a new OscBundle object. +
oscEvent(OscMessage) - +Method in interface oscP5.OscEventListener +
  +
OscEventListener - Interface in oscP5
 
OscIn - Class in oscP5
Deprecated. 
OscIn(OscMessage) - +Constructor for class oscP5.OscIn +
Deprecated.   +
OscMessage - Class in oscP5
An OSC message consists of an OSC Address Pattern, an OSC Type Tag String + and the OSC arguments.
OscMessage(OscMessage) - +Constructor for class oscP5.OscMessage +
  +
OscMessage(String) - +Constructor for class oscP5.OscMessage +
  +
OscMessage(int) - +Constructor for class oscP5.OscMessage +
  +
OscMessage(String, Object[]) - +Constructor for class oscP5.OscMessage +
  +
OscMessage(int, Object[]) - +Constructor for class oscP5.OscMessage +
  +
OscNetManager - Class in oscP5
 
OscNetManager() - +Constructor for class oscP5.OscNetManager +
  +
oscP5 - package oscP5
 
OscP5 - Class in oscP5
TODO add better error message handling for oscEvents, see this post + http://forum.processing.org/topic/oscp5-major-problems-with-error-handling# 25080000000811163
OscP5(Object, OscProperties) - +Constructor for class oscP5.OscP5 +
  +
OscP5(Object, String, int, int) - +Constructor for class oscP5.OscP5 +
  +
OscP5(Object, int, int) - +Constructor for class oscP5.OscP5 +
  +
OscP5(Object, int) - +Constructor for class oscP5.OscP5 +
  +
OscP5(Object, String, int, int, String) - +Constructor for class oscP5.OscP5 +
Deprecated.   +
OscP5(Object, String, int) - +Constructor for class oscP5.OscP5 +
Deprecated.   +
OSCP5_CLOSED - +Static variable in class oscP5.OscStatus +
  +
OscPacket - Class in oscP5
 
OscPacket() - +Constructor for class oscP5.OscPacket +
  +
OscPatcher - Class in oscP5
 
OscPlug - Class in oscP5
 
OscPlug() - +Constructor for class oscP5.OscPlug +
  +
OscProperties - Class in oscP5
osc properties are used to start oscP5 with more specific settings.
OscProperties(OscEventListener) - +Constructor for class oscP5.OscProperties +
  +
OscProperties() - +Constructor for class oscP5.OscProperties +
create a new OscProperties Object. +
oscStatus(OscStatus) - +Method in interface oscP5.OscEventListener +
  +
OscStatus - Class in oscP5
 
OscStatus(int) - +Constructor for class oscP5.OscStatus +
  +
+
+

+P

+
+
plug(Object, String, String, String) - +Method in class oscP5.OscP5 +
osc messages can be automatically forwarded to a specific method of an object. +
plug(Object, String, String) - +Method in class oscP5.OscP5 +
  +
plug(Object, String, String) - +Method in class oscP5.OscPlug +
  +
plug(Object, String, String, String) - +Method in class oscP5.OscPlug +
  +
port() - +Method in class netP5.NetAddress +
returns the remote port number +
port() - +Method in class netP5.NetMessage +
get the port the net message was received at. +
port() - +Method in class oscP5.OscPacket +
  +
print(String) - +Static method in class netP5.Logger +
  +
print() - +Static method in class netP5.NetInfo +
  +
print() - +Method in class oscP5.OscMessage +
  +
printBytes(byte[]) - +Static method in class netP5.Bytes +
  +
printBytes(byte[]) - +Static method in class netP5.Logger +
  +
printData() - +Method in class oscP5.OscMessage +
  +
printDebug(String, String) - +Static method in class netP5.Logger +
  +
printError(String, String) - +Static method in class netP5.Logger +
  +
printInfo(String, String) - +Static method in class netP5.Logger +
  +
println(String) - +Static method in class netP5.Logger +
  +
printProcess(String, String) - +Static method in class netP5.Logger +
  +
printWarning(String, String) - +Static method in class netP5.Logger +
  +
process(TcpPacket, int) - +Method in class netP5.AbstractTcpServer +
  +
PROCESS - +Static variable in class netP5.Logger +
  +
process(DatagramPacket, int) - +Method in class netP5.Multicast +
  +
process(TcpPacket, int) - +Method in interface netP5.TcpPacketListener +
  +
process(DatagramPacket, int) - +Method in interface netP5.UdpPacketListener +
  +
process(DatagramPacket, int) - +Method in class netP5.UdpServer +
  +
process(DatagramPacket, int) - +Method in class oscP5.OscNetManager +
  +
process(TcpPacket, int) - +Method in class oscP5.OscNetManager +
  +
process(DatagramPacket, int) - +Method in class oscP5.OscP5 +
incoming osc messages from an udp socket are parsed, processed and forwarded to the parent. +
process(TcpPacket, int) - +Method in class oscP5.OscP5 +
  +
properties() - +Method in class oscP5.OscP5 +
returns the current properties of oscP5. +
protocol() - +Method in class netP5.NetMessage +
get the protocol type the message was sent over. +
+
+

+R

+
+
reconnect() - +Method in class netP5.AbstractTcpClient +
when a TCP connection is lost, reconnect to the server with reconnect(). +
remoteAddress() - +Method in class oscP5.OscProperties +
returns a NetAddress of the remote host you are sending + osc packets to. +
remove(AbstractTcpClient) - +Method in class netP5.AbstractTcpServer +
remove a TcpClient from the server's client list. +
remove(String, int) - +Method in class netP5.NetAddressList +
  +
remove(NetAddress) - +Method in class netP5.NetAddressList +
  +
remove(String, char) - +Static method in class netP5.StringUtils +
Removes all instances of a character in a String. +
remove(String, String) - +Static method in class netP5.StringUtils +
Removes all instances of a substring in a String. +
remove(String, String[]) - +Static method in class netP5.StringUtils +
Removes all instances of substrings in a String. +
remove(AbstractTcpClient) - +Method in interface netP5.TcpPacketListener +
  +
remove(int) - +Method in class oscP5.OscBundle +
remove an OscMessage from an OscBundle. +
remove(OscMessage) - +Method in class oscP5.OscBundle +
  +
remove(AbstractTcpClient) - +Method in class oscP5.OscNetManager +
  +
remove(AbstractTcpClient) - +Method in class oscP5.OscP5 +
  +
removeDuplicates(String, String) - +Static method in class netP5.StringUtils +
Removes duplicates of a substring in a String. +
removeListener(NetListener) - +Method in class netP5.Multicast +
  +
removeListener(NetListener) - +Method in class netP5.TcpServer +
  +
removeListener(NetListener) - +Method in class netP5.UdpServer +
  +
removeListener(OscEventListener) - +Method in class oscP5.OscP5 +
  +
removeTcpListener(TcpPacketListener) - +Method in class oscP5.OscNetManager +
  +
removeUdpListener(UdpPacketListener) - +Method in class oscP5.OscNetManager +
  +
replace(String, String, String) - +Static method in class netP5.StringUtils +
Replaces substrings in a string. +
replace(String, String[], String) - +Static method in class netP5.StringUtils +
Replaces several substrings in a string. +
right(String, String) - +Static method in class netP5.StringUtils +
Returns the substring to the right of the specified substring in the + specified String, starting from the left. +
rightBack(String, String) - +Static method in class netP5.StringUtils +
Returns the substring to the right of the specified substring in the + specified String, starting from the right. +
rightJustify(String, int) - +Static method in class netP5.StringUtils +
Creates a string of the given width with the given string right justified + (with an appropriate number of spaces before it). +
run() - +Method in class netP5.AbstractMulticast +
  +
run() - +Method in class netP5.AbstractTcpClient +
  +
run() - +Method in class netP5.AbstractTcpServer +
  +
run() - +Method in class netP5.AbstractUdpServer +
  +
+
+

+S

+
+
send(String) - +Method in class netP5.AbstractMulticast +
send a string to the multicast address. +
send(byte[]) - +Method in class netP5.AbstractMulticast +
send a byte array to the mulitcast address. +
send(byte[]) - +Method in class netP5.AbstractTcpClient +
  +
send(byte[][]) - +Method in class netP5.AbstractTcpClient +
  +
send(String) - +Method in class netP5.AbstractTcpClient +
  +
send(String) - +Method in class netP5.AbstractTcpServer +
send a string to the connected client(s). +
send(byte[]) - +Method in class netP5.AbstractTcpServer +
send a byte array to the connected client(s). +
send(String) - +Method in class netP5.AbstractUdpClient +
send a string using UDP to an already specified RemoteAddress. +
send(byte[]) - +Method in class netP5.AbstractUdpClient +
send a byte array using UDP to an already specified RemoteAddress. +
send(byte[], NetAddress) - +Method in class netP5.AbstractUdpClient +
send a byte array to the dedicated remoteAddress. +
send(byte[], String, int) - +Method in class netP5.AbstractUdpClient +
send a byte array to the dedicated remoteAddress. +
send(DatagramPacket) - +Method in class netP5.AbstractUdpClient +
  +
send(byte[], InetAddress, int) - +Method in class netP5.AbstractUdpClient +
send a byte array to the dedicated remoteAddress. +
send(byte[]) - +Method in class netP5.AbstractUdpServer +
send a byte array to a previously defined remoteAddress. +
send(byte[], String, int) - +Method in class netP5.AbstractUdpServer +
send a byte array to a dedicated remoteAddress. +
send(DatagramPacket) - +Method in class netP5.AbstractUdpServer +
  +
send(byte[], InetAddress, int) - +Method in class netP5.AbstractUdpServer +
send a byte array to a dedicated remoteAddress. +
send(OscPacket) - +Method in class oscP5.OscNetManager +
  +
send(DatagramPacket) - +Method in class oscP5.OscNetManager +
  +
send(OscPacket, String, int) - +Method in class oscP5.OscNetManager +
  +
send(OscPacket, NetAddressList) - +Method in class oscP5.OscNetManager +
  +
send(OscPacket, NetAddress) - +Method in class oscP5.OscNetManager +
  +
send(String, Object[]) - +Method in class oscP5.OscNetManager +
  +
send(String, Object[], String, int) - +Method in class oscP5.OscNetManager +
  +
send(String, Object[], NetAddressList) - +Method in class oscP5.OscNetManager +
  +
send(String, Object[], NetAddress) - +Method in class oscP5.OscNetManager +
  +
send(OscPacket, NetAddress) - +Method in class oscP5.OscP5 +
you can send osc packets in many different ways. +
send(OscPacket) - +Method in class oscP5.OscP5 +
  +
send(OscPacket, NetAddressList) - +Method in class oscP5.OscP5 +
  +
send(String, Object[]) - +Method in class oscP5.OscP5 +
  +
send(String, Object[], NetAddressList) - +Method in class oscP5.OscP5 +
  +
send(String, Object[], NetAddress) - +Method in class oscP5.OscP5 +
  +
send(String, Object[], String, int) - +Method in class oscP5.OscP5 +
  +
send(OscPacket, TcpClient) - +Method in class oscP5.OscP5 +
send to tcp client +
send(String, Object[], TcpClient) - +Method in class oscP5.OscP5 +
  +
send(OscPacket, String, int) - +Method in class oscP5.OscP5 +
Deprecated.   +
SEND_FAILED - +Static variable in class netP5.NetStatus +
  +
SEND_FAILED - +Static variable in class oscP5.OscStatus +
  +
sendStatus() - +Method in class oscP5.OscProperties +
  +
SERVER_CLOSED - +Static variable in class netP5.NetStatus +
  +
SERVER_CLOSED - +Static variable in class oscP5.OscStatus +
  +
serverport() - +Method in class netP5.AbstractTcpClient +
get the server port. +
set(int, int) - +Static method in class netP5.Logger +
  +
set(NetAddress[]) - +Method in class netP5.NetAddressList +
  +
set(int, Object) - +Method in class oscP5.OscMessage +
TODO + set should enable the programmer to set values + of an existing osc message. +
setAddrPattern(String) - +Method in class oscP5.OscMessage +
set the address pattern of an osc message. +
setAddrPattern(int) - +Method in class oscP5.OscMessage +
  +
setArguments(Object[]) - +Method in class oscP5.OscMessage +
set the arguments of the osc message using an object array. +
setDatagramSize(int) - +Method in class netP5.AbstractMulticast +
set the buffer size of the datagrams received by the multicast socket. +
setDatagramSize(int) - +Method in class oscP5.OscProperties +
set the size of the datagrampacket byte buffer. +
setEventMethod(String) - +Method in class oscP5.OscProperties +
set the name of the default event method. +
setListeningPort(int) - +Method in class oscP5.OscProperties +
set port number you are listening for incoming osc packets. +
setLogStatus(int, int) - +Static method in class oscP5.OscP5 +
oscP5 has a logging mechanism which prints out processes, warnings and errors into the + console window. +
setLogStatus(int) - +Static method in class oscP5.OscP5 +
  +
setLoopback(boolean) - +Method in class netP5.AbstractMulticast +
Disable/Enable local loopback of multicast datagrams. +
setName(String) - +Method in class netP5.TcpClient +
  +
setNetworkProtocol(int) - +Method in class oscP5.OscProperties +
set the network protocol over which osc messages are transmitted. +
setRemoteAddress(String, int) - +Method in class oscP5.OscProperties +
set the remote host address. +
setRemoteAddress(NetAddress) - +Method in class oscP5.OscProperties +
set the remote host address. +
setSRSP(boolean) - +Method in class oscP5.OscProperties +
SRSP stand for Send and Receive on Same Port. +
setTerminator(char) - +Method in class netP5.AbstractTcpClient +
to parse an incomming tcp message, a terminator character is required to + determine the end of the message so that it can be parsed and forwarded. +
setTimetag(long) - +Method in class oscP5.OscBundle +
set the timetag of an osc bundle. +
setTimeToLive(int) - +Method in class netP5.AbstractMulticast +
Set the default time-to-live for multicast packets + sent out on this MulticastSocket in order to control the scope + of the multicasts. +
setTimeToLive(int) - +Method in class oscP5.OscNetManager +
  +
setTimeToLive(int) - +Method in class oscP5.OscP5 +
set timeToLive of a multicast packet. +
size() - +Method in class netP5.AbstractTcpServer +
get the number of connected clients. +
size() - +Method in class netP5.NetAddressList +
  +
size() - +Method in class oscP5.OscBundle +
get the size of the osc bundle array which contains the osc messages. +
slice(int, String[]) - +Static method in class netP5.StringUtils +
  +
socket() - +Method in class netP5.AbstractMulticast +
get the running multicast socket. +
socket() - +Method in class netP5.AbstractTcpClient +
get the instance of the socket. +
socket() - +Method in class netP5.AbstractTcpServer +
get the server socket object. +
socket() - +Method in class netP5.AbstractUdpClient +
get the datagram socket of the UDP client. +
socket() - +Method in class netP5.AbstractUdpServer +
get the datagram socket of the UDP server. +
spaces(int) - +Static method in class netP5.StringUtils +
Returns a String with the specified number of spaces. +
srsp() - +Method in class oscP5.OscProperties +
you can send and receive at the same port while on a udp con +
start() - +Method in class netP5.AbstractMulticast +
  +
start() - +Method in class netP5.AbstractUdpServer +
  +
start(OscProperties) - +Method in class oscP5.OscNetManager +
  +
status(int) - +Method in interface netP5.TcpPacketListener +
  +
status(int) - +Method in class netP5.TcpServer +
  +
status(int) - +Method in class oscP5.OscNetManager +
  +
status(int) - +Method in class oscP5.OscP5 +
  +
stop() - +Method in class oscP5.OscP5 +
stop oscP5 and close open Sockets. +
StringUtils - Class in netP5
 
stringValue() - +Method in class oscP5.OscArgument +
get the String value of the osc argument. +
switchCase(String) - +Static method in class netP5.StringUtils +
Switches the case of the supplied String. +
switchCase(char) - +Static method in class netP5.StringUtils +
Switches the case of the supplied character. +
+
+

+T

+
+
TCP - +Static variable in interface netP5.NetP5 +
  +
TCP - +Static variable in class oscP5.OscP5 +
a static variable used when creating an oscP5 instance with a sepcified network protocol. +
TCP - +Static variable in class oscP5.OscProperties +
  +
TcpClient - Class in netP5
 
TcpClient(Object, String, int) - +Constructor for class netP5.TcpClient +
  +
TcpClient(Object, String, int, int) - +Constructor for class netP5.TcpClient +
  +
TcpClient(TcpPacketListener, String, int, int) - +Constructor for class netP5.TcpClient +
  +
TcpClient(Object, NetAddress) - +Constructor for class netP5.TcpClient +
  +
TcpClient(NetAddress) - +Constructor for class netP5.TcpClient +
  +
TcpClient(String, int) - +Constructor for class netP5.TcpClient +
  +
TcpClient(AbstractTcpServer, Socket, TcpPacketListener, int, int) - +Constructor for class netP5.TcpClient +
  +
tcpClient() - +Method in class oscP5.OscNetManager +
  +
tcpClient() - +Method in class oscP5.OscP5 +
return the instance of the running TCP client if in TCP mode. +
tcpConnection() - +Method in class netP5.NetMessage +
  +
tcpConnection() - +Method in class oscP5.OscPacket +
when in TCP mode, tcpConnection() returns the instance of the TcpClient that has sent the OscMessage. +
TcpPacket - Class in netP5
 
TcpPacket(TcpClient, StringBuffer, byte[]) - +Constructor for class netP5.TcpPacket +
  +
TcpPacketListener - Interface in netP5
 
TcpServer - Class in netP5
 
TcpServer(int) - +Constructor for class netP5.TcpServer +
  +
TcpServer(Object, int) - +Constructor for class netP5.TcpServer +
  +
TcpServer(Object, int, int) - +Constructor for class netP5.TcpServer +
  +
TcpServer(int, int) - +Constructor for class netP5.TcpServer +
  +
TcpServer(TcpPacketListener, int, int) - +Constructor for class netP5.TcpServer +
  +
tcpServer() - +Method in class oscP5.OscNetManager +
  +
tcpServer() - +Method in class oscP5.OscP5 +
return the instance of the running TCP server if in TCP mode. +
timetag() - +Method in class oscP5.OscBundle +
returns a timetag as byte array. +
timetag() - +Method in class oscP5.OscMessage +
get the timetag of an osc message. +
timeToLive() - +Method in class netP5.AbstractMulticast +
get the current time to live value. +
toByteArray(InputStream) - +Static method in class netP5.Bytes +
  +
toBytes(int) - +Static method in class netP5.Bytes +
  +
toBytes(int, byte[]) - +Static method in class netP5.Bytes +
  +
toBytes(long) - +Static method in class netP5.Bytes +
  +
toBytes(long, byte[]) - +Static method in class netP5.Bytes +
  +
toDouble(byte[]) - +Static method in class netP5.Bytes +
  +
toFile(InputStream, File) - +Static method in class netP5.Bytes +
  +
toFloat(byte[]) - +Static method in class netP5.Bytes +
  +
toInt(byte[]) - +Static method in class netP5.Bytes +
  +
toIntBigEndian(InputStream) - +Static method in class netP5.Bytes +
  +
toIntLittleEndian(InputStream) - +Static method in class netP5.Bytes +
  +
toLong(byte[]) - +Static method in class netP5.Bytes +
  +
toStream(OutputStream, int) - +Static method in class netP5.Bytes +
  +
toStream(OutputStream, String) - +Static method in class netP5.Bytes +
  +
toStream(OutputStream, byte[]) - +Static method in class netP5.Bytes +
  +
toStream(OutputStream, File) - +Static method in class netP5.Bytes +
  +
toString(byte[], int, int) - +Static method in class netP5.Bytes +
  +
toString(byte[]) - +Static method in class netP5.Bytes +
  +
toString(InputStream) - +Static method in class netP5.Bytes +
  +
toString() - +Method in class netP5.NetAddress +
  +
toString() - +Method in class oscP5.OscArgument +
  +
toString() - +Method in class oscP5.OscMessage +
  +
toString() - +Method in class oscP5.OscProperties +
prints out the current osc properties settings. +
typetag() - +Method in class oscP5.OscMessage +
returns the typetag of the osc message. +
+
+

+U

+
+
UDP - +Static variable in interface netP5.NetP5 +
  +
UDP - +Static variable in class oscP5.OscP5 +
a static variable used when creating an oscP5 instance with a sepcified network protocol. +
UDP - +Static variable in class oscP5.OscProperties +
  +
UdpClient - Class in netP5
 
UdpClient() - +Constructor for class netP5.UdpClient +
  +
UdpClient(String, int) - +Constructor for class netP5.UdpClient +
  +
UdpClient(NetAddress) - +Constructor for class netP5.UdpClient +
  +
UdpPacketListener - Interface in netP5
 
UdpServer - Class in netP5
 
UdpServer(Object, int, int) - +Constructor for class netP5.UdpServer +
new UDP server. +
UdpServer(Object, int) - +Constructor for class netP5.UdpServer +
  +
UdpServer(UdpPacketListener, int, int) - +Constructor for class netP5.UdpServer +
  +
unBan(String) - +Method in class netP5.AbstractTcpServer +
remove the ban for an IP address. +
+
+

+V

+
+
VERSION - +Static variable in interface netP5.NetP5 +
  +
VERSION - +Static variable in class oscP5.OscP5 +
  +
version() - +Method in class oscP5.OscP5 +
get the current version of oscP5. +
+
+

+W

+
+
wan() - +Static method in class netP5.NetInfo +
  +
WARNING - +Static variable in class netP5.Logger +
  +
+
+A B C D E F G H I L M N O P R S T U V W + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/index.html b/libraries/oscP5/reference/index.html new file mode 100644 index 0000000..41a7d02 --- /dev/null +++ b/libraries/oscP5/reference/index.html @@ -0,0 +1,39 @@ + + + + + + +Javadocs: oscP5 + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/libraries/oscP5/reference/netP5/AbstractMulticast.html b/libraries/oscP5/reference/netP5/AbstractMulticast.html new file mode 100644 index 0000000..7de48fc --- /dev/null +++ b/libraries/oscP5/reference/netP5/AbstractMulticast.html @@ -0,0 +1,560 @@ + + + + + + +AbstractMulticast (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class AbstractMulticast

+
+java.lang.Object
+  extended by netP5.AbstractMulticast
+
+
+
All Implemented Interfaces:
Runnable
+
+
+
Direct Known Subclasses:
Multicast
+
+
+
+
public abstract class AbstractMulticast
extends Object
implements Runnable
+ + +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
AbstractMulticast(UdpPacketListener theDatagramListener, + String theMulticastAddress, + int thePort) + +
+           
AbstractMulticast(UdpPacketListener theDatagramListener, + String theMulticastAddress, + int thePort, + int theBufferSize) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclose() + +
+           
+ voiddispose() + +
+          dispose the multicastSocket.
+ booleanloopback() + +
+          get the current loopback mode.
+ voidrun() + +
+           
+ voidsend(byte[] theBytes) + +
+          send a byte array to the mulitcast address.
+ voidsend(String theString) + +
+          send a string to the multicast address.
+ voidsetDatagramSize(int theDatagramSize) + +
+          set the buffer size of the datagrams received by the multicast socket.
+ voidsetLoopback(boolean theFlag) + +
+          Disable/Enable local loopback of multicast datagrams.
+ booleansetTimeToLive(int theTTL) + +
+          Set the default time-to-live for multicast packets + sent out on this MulticastSocket in order to control the scope + of the multicasts.
+ MulticastSocketsocket() + +
+          get the running multicast socket.
+ voidstart() + +
+           
+ inttimeToLive() + +
+          get the current time to live value.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractMulticast

+
+public AbstractMulticast(UdpPacketListener theDatagramListener,
+                         String theMulticastAddress,
+                         int thePort,
+                         int theBufferSize)
+
+
+
Parameters:
theDatagramListener - UdpPacketListener
theMulticastAddress - String
thePort - int
theBufferSize - int
+
+
+ +

+AbstractMulticast

+
+public AbstractMulticast(UdpPacketListener theDatagramListener,
+                         String theMulticastAddress,
+                         int thePort)
+
+
+
Parameters:
theDatagramListener - UdpPacketListener
theMulticastAddress - String
thePort - int
+
+ + + + + + + + +
+Method Detail
+ +

+socket

+
+public MulticastSocket socket()
+
+
get the running multicast socket. +

+

+
+
+
+ +
Returns:
MulticastSocket
+
+
+
+ +

+setDatagramSize

+
+public void setDatagramSize(int theDatagramSize)
+
+
set the buffer size of the datagrams received by the multicast socket. +

+

+
+
+
+
Parameters:
theDatagramSize - int
+
+
+
+ +

+start

+
+public void start()
+
+
+
+
+
+
+
+
+
+ +

+run

+
+public void run()
+
+
+
Specified by:
run in interface Runnable
+
+
+
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
dispose the multicastSocket. +

+

+
+
+
+
+
+
+
+ +

+close

+
+public void close()
+
+
+
+
+
+
+
+
+
+ +

+setTimeToLive

+
+public boolean setTimeToLive(int theTTL)
+
+
Set the default time-to-live for multicast packets + sent out on this MulticastSocket in order to control the scope + of the multicasts. theTTL must be in the range 0 <= ttl <= 255 +

+

+
+
+
+
Parameters:
theTTL - int +
Returns:
boolean
+
+
+
+ +

+timeToLive

+
+public int timeToLive()
+
+
get the current time to live value. +

+

+
+
+
+ +
Returns:
int
+
+
+
+ +

+setLoopback

+
+public void setLoopback(boolean theFlag)
+
+
Disable/Enable local loopback of multicast datagrams. + The option is used by the platform's networking code as a + hint for setting whether multicast data will be + looped back to the local socket. +

+

+
+
+
+
Parameters:
theFlag - boolean
+
+
+
+ +

+loopback

+
+public boolean loopback()
+
+
get the current loopback mode. messages loop back to the local address + if the loopback is set to false. set loopback to false to prevent messages + to loop back to your local address. +

+

+
+
+
+ +
Returns:
boolean
+
+
+
+ +

+send

+
+public void send(String theString)
+
+
send a string to the multicast address. +

+

+
+
+
+
Parameters:
theString - String
+
+
+
+ +

+send

+
+public void send(byte[] theBytes)
+
+
send a byte array to the mulitcast address. +

+

+
+
+
+
Parameters:
theBytes - byte[]
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/AbstractTcpClient.html b/libraries/oscP5/reference/netP5/AbstractTcpClient.html new file mode 100644 index 0000000..afc5010 --- /dev/null +++ b/libraries/oscP5/reference/netP5/AbstractTcpClient.html @@ -0,0 +1,869 @@ + + + + + + +AbstractTcpClient (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class AbstractTcpClient

+
+java.lang.Object
+  extended by netP5.AbstractTcpClient
+
+
+
All Implemented Interfaces:
Runnable
+
+
+
Direct Known Subclasses:
TcpClient
+
+
+
+
public abstract class AbstractTcpClient
extends Object
implements Runnable
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intMODE_NEWLINE + +
+          terminator is newline.
+static intMODE_READLINE + +
+          terminator is readline.
+static intMODE_STREAM + +
+          no terminator required, packets are sent via + a tcp stream.
+static intMODE_TERMINATED + +
+          terminator is terminated, by default this is character '\0' + and can be set with setTerminator
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
AbstractTcpClient(AbstractTcpServer theTcpServer, + Socket theSocket, + TcpPacketListener theTcpPacketListener, + int theServerPort, + int theMode) + +
+           
AbstractTcpClient(String theHost, + int thePort) + +
+           
AbstractTcpClient(String theHost, + int thePort, + int theMode) + +
+           
AbstractTcpClient(TcpPacketListener theTcpPacketListener, + String theHost, + int thePort) + +
+           
AbstractTcpClient(TcpPacketListener theTcpPacketListener, + String theHost, + int thePort, + int theMode) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddispose() + +
+          stop and dispose a tcp client.
+ booleanequals(NetAddress theNetAddress) + +
+           
+ booleanequals(TcpClient theClient) + +
+           
+ StringgetString() + +
+           
+ StringBuffergetStringBuffer() + +
+           
+abstract  voidhandleInput() + +
+           
+abstract  voidhandleStatus(int theIndex) + +
+           
+ TcpPacketListenerlistener() + +
+           
+ intmode() + +
+          get the mode of the terminator.
+ NetAddressnetaddress() + +
+          Deprecated.  
+ NetAddressnetAddress() + +
+           
+ voidreconnect() + +
+          when a TCP connection is lost, reconnect to the server with reconnect().
+ voidrun() + +
+           
+ voidsend(byte[] theBytes) + +
+           
+ voidsend(byte[][] theBytes) + +
+           
+ voidsend(String theString) + +
+           
+ intserverport() + +
+          get the server port.
+ voidsetTerminator(char theTerminator) + +
+          to parse an incomming tcp message, a terminator character is required to + determine the end of the message so that it can be parsed and forwarded.
+ Socketsocket() + +
+          get the instance of the socket.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+MODE_READLINE

+
+public static final int MODE_READLINE
+
+
terminator is readline. +

+

+
See Also:
Constant Field Values
+
+
+ +

+MODE_TERMINATED

+
+public static final int MODE_TERMINATED
+
+
terminator is terminated, by default this is character '\0' + and can be set with setTerminator +

+

+
See Also:
Constant Field Values
+
+
+ +

+MODE_NEWLINE

+
+public static final int MODE_NEWLINE
+
+
terminator is newline. +

+

+
See Also:
Constant Field Values
+
+
+ +

+MODE_STREAM

+
+public static final int MODE_STREAM
+
+
no terminator required, packets are sent via + a tcp stream. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractTcpClient

+
+public AbstractTcpClient(TcpPacketListener theTcpPacketListener,
+                         String theHost,
+                         int thePort)
+
+
+
Parameters:
theTcpPacketListener - TcpPacketListener
theHost - String
thePort - int
+
+
+ +

+AbstractTcpClient

+
+public AbstractTcpClient(String theHost,
+                         int thePort)
+
+
+
Parameters:
theHost - String
thePort - int
+
+
+ +

+AbstractTcpClient

+
+public AbstractTcpClient(TcpPacketListener theTcpPacketListener,
+                         String theHost,
+                         int thePort,
+                         int theMode)
+
+
+
Parameters:
theTcpPacketListener - TcpPacketListener
theHost - String
thePort - int
theMode - int
+
+
+ +

+AbstractTcpClient

+
+public AbstractTcpClient(String theHost,
+                         int thePort,
+                         int theMode)
+
+
+
Parameters:
theHost - String
thePort - int
theMode - int
+
+
+ +

+AbstractTcpClient

+
+public AbstractTcpClient(AbstractTcpServer theTcpServer,
+                         Socket theSocket,
+                         TcpPacketListener theTcpPacketListener,
+                         int theServerPort,
+                         int theMode)
+
+
+
Parameters:
theTcpServer - AbstractTcpServer
theSocket - Socket
theTcpPacketListener - TcpPacketListener
theServerPort - int
theMode - int
+
+ + + + + + + + +
+Method Detail
+ +

+reconnect

+
+public void reconnect()
+
+
when a TCP connection is lost, reconnect to the server with reconnect(). +

+

+
+
+
+
+
+
+
+ +

+setTerminator

+
+public void setTerminator(char theTerminator)
+
+
to parse an incomming tcp message, a terminator character is required to + determine the end of the message so that it can be parsed and forwarded. +

+

+
+
+
+
Parameters:
theTerminator -
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
stop and dispose a tcp client. +

+

+
+
+
+
+
+
+
+ +

+run

+
+public void run()
+
+
+
Specified by:
run in interface Runnable
+
+
+
+
+
+
+ +

+handleInput

+
+public abstract void handleInput()
+
+
+
+
+
+
+
+
+
+ +

+handleStatus

+
+public abstract void handleStatus(int theIndex)
+
+
+
+
+
+
Parameters:
theIndex -
+
+
+
+ +

+listener

+
+public TcpPacketListener listener()
+
+
+
+
+
+ +
Returns:
+
+
+
+ +

+serverport

+
+public int serverport()
+
+
get the server port. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+socket

+
+public Socket socket()
+
+
get the instance of the socket. more info at java.net.Socket +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+mode

+
+public int mode()
+
+
get the mode of the terminator. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+getString

+
+public String getString()
+
+
+
+
+
+
+
+
+
+ +

+getStringBuffer

+
+public StringBuffer getStringBuffer()
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(byte[] theBytes)
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(byte[][] theBytes)
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(String theString)
+
+
+
+
+
+
+
+
+
+ +

+netAddress

+
+public NetAddress netAddress()
+
+
+
+
+
+
+
+
+
+ +

+netaddress

+
+public NetAddress netaddress()
+
+
Deprecated.  +

+

+
+
+
+ +
Returns:
NetAddress
+
+
+
+ +

+equals

+
+public boolean equals(NetAddress theNetAddress)
+
+
+
+
+
+
Parameters:
theNetAddress - NetAddress +
Returns:
boolean
+
+
+
+ +

+equals

+
+public boolean equals(TcpClient theClient)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/AbstractTcpServer.html b/libraries/oscP5/reference/netP5/AbstractTcpServer.html new file mode 100644 index 0000000..cd55883 --- /dev/null +++ b/libraries/oscP5/reference/netP5/AbstractTcpServer.html @@ -0,0 +1,675 @@ + + + + + + +AbstractTcpServer (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class AbstractTcpServer

+
+java.lang.Object
+  extended by netP5.AbstractTcpServer
+
+
+
All Implemented Interfaces:
Runnable, TcpPacketListener
+
+
+
Direct Known Subclasses:
TcpServer
+
+
+
+
public abstract class AbstractTcpServer
extends Object
implements Runnable, TcpPacketListener
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intMODE_NEWLINE + +
+           
+static intMODE_READLINE + +
+           
+static intMODE_STREAM + +
+           
+static intMODE_TERMINATED + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
AbstractTcpServer(int thePort, + int theMode) + +
+           
AbstractTcpServer(TcpPacketListener theTcpPacketListener, + int thePort, + int theMode) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidban(String theIP) + +
+          ban an IP address from the server.
+ voiddispose() + +
+          kill the server.
+ TcpClientgetClient(int theIndex) + +
+          get a client at a specific position the client list.
+ TcpClient[]getClients() + +
+          get a list of all connected clients.
+abstract  voidhandleInput(TcpPacket thePacket, + int thePort) + +
+           
+ voidprocess(TcpPacket thePacket, + int thePort) + +
+           
+ voidremove(AbstractTcpClient theTcpClient) + +
+          remove a TcpClient from the server's client list.
+ voidrun() + +
+           
+ voidsend(byte[] theBytes) + +
+          send a byte array to the connected client(s).
+ voidsend(String theString) + +
+          send a string to the connected client(s).
+ intsize() + +
+          get the number of connected clients.
+ ServerSocketsocket() + +
+          get the server socket object.
+ voidunBan(String theIP) + +
+          remove the ban for an IP address.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface netP5.TcpPacketListener
status
+  +

+ + + + + + + + +
+Field Detail
+ +

+MODE_READLINE

+
+public static final int MODE_READLINE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MODE_TERMINATED

+
+public static final int MODE_TERMINATED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MODE_NEWLINE

+
+public static final int MODE_NEWLINE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MODE_STREAM

+
+public static final int MODE_STREAM
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractTcpServer

+
+public AbstractTcpServer(int thePort,
+                         int theMode)
+
+
+
Parameters:
thePort - int
theMode - int
+
+
+ +

+AbstractTcpServer

+
+public AbstractTcpServer(TcpPacketListener theTcpPacketListener,
+                         int thePort,
+                         int theMode)
+
+
+
Parameters:
theTcpPacketListener - TcpPacketListener
thePort - int
theMode - int
+
+ + + + + + + + +
+Method Detail
+ +

+ban

+
+public void ban(String theIP)
+
+
ban an IP address from the server. +

+

+
+
+
+
Parameters:
theIP -
+
+
+
+ +

+unBan

+
+public void unBan(String theIP)
+
+
remove the ban for an IP address. +

+

+
+
+
+
Parameters:
theIP -
+
+
+
+ +

+socket

+
+public ServerSocket socket()
+
+
get the server socket object. more at java.net.ServerSocket +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+run

+
+public void run()
+
+
+
Specified by:
run in interface Runnable
+
+
+
+
+
+
+ +

+send

+
+public void send(String theString)
+
+
send a string to the connected client(s). +

+

+
+
+
+
Parameters:
theString -
+
+
+
+ +

+send

+
+public void send(byte[] theBytes)
+
+
send a byte array to the connected client(s). +

+

+
+
+
+
Parameters:
theBytes -
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
kill the server. +

+

+
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
get the number of connected clients. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+getClients

+
+public TcpClient[] getClients()
+
+
get a list of all connected clients. an array of type TcpClient[] + will be returned. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+getClient

+
+public TcpClient getClient(int theIndex)
+
+
get a client at a specific position the client list. +

+

+
+
+
+
Parameters:
theIndex - +
Returns:
+
+
+
+ +

+process

+
+public void process(TcpPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface TcpPacketListener
+
+
+
Parameters:
thePacket - TcpPacket
thePort - int
+
+
+
+ +

+handleInput

+
+public abstract void handleInput(TcpPacket thePacket,
+                                 int thePort)
+
+
+
+
+
+
Parameters:
thePacket - TcpPacket
thePort - int
+
+
+
+ +

+remove

+
+public void remove(AbstractTcpClient theTcpClient)
+
+
remove a TcpClient from the server's client list. +

+

+
Specified by:
remove in interface TcpPacketListener
+
+
+
Parameters:
theTcpClient - TCPClientAbstract
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/AbstractUdpClient.html b/libraries/oscP5/reference/netP5/AbstractUdpClient.html new file mode 100644 index 0000000..44efe19 --- /dev/null +++ b/libraries/oscP5/reference/netP5/AbstractUdpClient.html @@ -0,0 +1,408 @@ + + + + + + +AbstractUdpClient (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class AbstractUdpClient

+
+java.lang.Object
+  extended by netP5.AbstractUdpClient
+
+
+
Direct Known Subclasses:
UdpClient
+
+
+
+
public abstract class AbstractUdpClient
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
AbstractUdpClient() + +
+           
AbstractUdpClient(String theAddr, + int thePort) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidsend(byte[] theBytes) + +
+          send a byte array using UDP to an already specified RemoteAddress.
+ voidsend(byte[] theBytes, + InetAddress theAddress, + int thePort) + +
+          send a byte array to the dedicated remoteAddress.
+ voidsend(byte[] theBytes, + NetAddress theNetAddress) + +
+          send a byte array to the dedicated remoteAddress.
+ voidsend(byte[] theBytes, + String theAddress, + int thePort) + +
+          send a byte array to the dedicated remoteAddress.
+ voidsend(DatagramPacket thePacket) + +
+           
+ voidsend(String theString) + +
+          send a string using UDP to an already specified RemoteAddress.
+ DatagramSocketsocket() + +
+          get the datagram socket of the UDP client.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractUdpClient

+
+public AbstractUdpClient()
+
+
+
+ +

+AbstractUdpClient

+
+public AbstractUdpClient(String theAddr,
+                         int thePort)
+
+
+
Parameters:
theAddr - String
thePort - int
+
+ + + + + + + + +
+Method Detail
+ +

+socket

+
+public DatagramSocket socket()
+
+
get the datagram socket of the UDP client. more info at java.net.DatagramSocket +

+

+ +
Returns:
DatagramSocket
+
+
+
+ +

+send

+
+public void send(String theString)
+
+
send a string using UDP to an already specified RemoteAddress. +

+

+
Parameters:
theString -
+
+
+
+ +

+send

+
+public void send(byte[] theBytes)
+
+
send a byte array using UDP to an already specified RemoteAddress. +

+

+
Parameters:
theBytes - byte[]
+
+
+
+ +

+send

+
+public void send(byte[] theBytes,
+                 NetAddress theNetAddress)
+
+
send a byte array to the dedicated remoteAddress. +

+

+
Parameters:
theBytes -
theNetAddress -
+
+
+
+ +

+send

+
+public void send(byte[] theBytes,
+                 String theAddress,
+                 int thePort)
+
+
send a byte array to the dedicated remoteAddress. +

+

+
Parameters:
thePacket - OscPacket
theAddress - String
thePort - int
+
+
+
+ +

+send

+
+public void send(DatagramPacket thePacket)
+
+
+
Parameters:
thePacket - DatagramPacket
+
+
+
+ +

+send

+
+public void send(byte[] theBytes,
+                 InetAddress theAddress,
+                 int thePort)
+
+
send a byte array to the dedicated remoteAddress. +

+

+
Parameters:
theBytes - byte[]
theAddress - InetAddress
thePort - int
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/AbstractUdpServer.html b/libraries/oscP5/reference/netP5/AbstractUdpServer.html new file mode 100644 index 0000000..927c9cb --- /dev/null +++ b/libraries/oscP5/reference/netP5/AbstractUdpServer.html @@ -0,0 +1,440 @@ + + + + + + +AbstractUdpServer (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class AbstractUdpServer

+
+java.lang.Object
+  extended by netP5.AbstractUdpServer
+
+
+
All Implemented Interfaces:
Runnable
+
+
+
Direct Known Subclasses:
UdpServer
+
+
+
+
public abstract class AbstractUdpServer
extends Object
implements Runnable
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AbstractUdpServer(UdpPacketListener theListener, + int thePort, + int theBufferSize) + +
+          create a new UdpServer
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddispose() + +
+          stop the UDP server, clean up and delete its reference.
+ voidrun() + +
+           
+ voidsend(byte[] theBytes) + +
+          send a byte array to a previously defined remoteAddress.
+ voidsend(byte[] theBytes, + InetAddress theAddress, + int thePort) + +
+          send a byte array to a dedicated remoteAddress.
+ voidsend(byte[] theBytes, + String theAddress, + int thePort) + +
+          send a byte array to a dedicated remoteAddress.
+ voidsend(DatagramPacket thePacket) + +
+           
+ DatagramSocketsocket() + +
+          get the datagram socket of the UDP server.
+ voidstart() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractUdpServer

+
+public AbstractUdpServer(UdpPacketListener theListener,
+                         int thePort,
+                         int theBufferSize)
+
+
create a new UdpServer +

+

+
Parameters:
theListener - UdpPacketListener
thePort - int
theBufferSize - int
+
+ + + + + + + + +
+Method Detail
+ +

+socket

+
+public DatagramSocket socket()
+
+
get the datagram socket of the UDP server. +

+

+
+
+
+ +
Returns:
DatagramSocket
+
+
+
+ +

+start

+
+public void start()
+
+
+
+
+
+
+
+
+
+ +

+run

+
+public void run()
+
+
+
Specified by:
run in interface Runnable
+
+
+
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
stop the UDP server, clean up and delete its reference. +

+

+
+
+
+
+
+
+
+ +

+send

+
+public void send(byte[] theBytes)
+
+
send a byte array to a previously defined remoteAddress. +

+

+
+
+
+
Parameters:
theBytes - byte[]
+
+
+
+ +

+send

+
+public void send(byte[] theBytes,
+                 String theAddress,
+                 int thePort)
+
+
send a byte array to a dedicated remoteAddress. +

+

+
+
+
+
Parameters:
thePacket - OscPacket
theAddress - String
thePort - int
+
+
+
+ +

+send

+
+public void send(DatagramPacket thePacket)
+
+
+
+
+
+
Parameters:
thePacket - DatagramPacket
+
+
+
+ +

+send

+
+public void send(byte[] theBytes,
+                 InetAddress theAddress,
+                 int thePort)
+
+
send a byte array to a dedicated remoteAddress. +

+

+
+
+
+
Parameters:
theBytes - byte[]
theAddress - InetAddress
thePort - int
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/Bytes.html b/libraries/oscP5/reference/netP5/Bytes.html new file mode 100644 index 0000000..e3bdca7 --- /dev/null +++ b/libraries/oscP5/reference/netP5/Bytes.html @@ -0,0 +1,906 @@ + + + + + + +Bytes (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class Bytes

+
+java.lang.Object
+  extended by netP5.Bytes
+
+
+
+
public class Bytes
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Bytes() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static byte[]append(byte[] abyte0, + byte[] abyte1) + +
+           
+static byte[]append(byte[] abyte0, + byte[] abyte1, + byte[] abyte2) + +
+           
+static booleanareEqual(byte[] abyte0, + byte[] abyte1) + +
+           
+static byte[]copy(byte[] abyte0, + int i) + +
+           
+static byte[]copy(byte[] abyte0, + int i, + int j) + +
+           
+static StringgetAsString(byte[] theBytes) + +
+           
+static StringgetAsString(Object[] theObject) + +
+          converts an object array into a String that is formated like a list
+static voidmerge(byte[] abyte0, + byte[] abyte1) + +
+           
+static voidmerge(byte[] abyte0, + byte[] abyte1, + int i) + +
+           
+static voidmerge(byte[] abyte0, + byte[] abyte1, + int i, + int j) + +
+           
+static voidmerge(byte[] abyte0, + byte[] abyte1, + int i, + int j, + int k) + +
+           
+static voidprintBytes(byte[] byteArray) + +
+           
+static byte[]toByteArray(InputStream ins) + +
+           
+static byte[]toBytes(int i) + +
+           
+static byte[]toBytes(int i, + byte[] abyte0) + +
+           
+static byte[]toBytes(long l) + +
+           
+static byte[]toBytes(long l, + byte[] abyte0) + +
+           
+static doubletoDouble(byte[] abyte0) + +
+           
+static voidtoFile(InputStream ins, + File file) + +
+           
+static floattoFloat(byte[] abyte0) + +
+           
+static inttoInt(byte[] abyte0) + +
+           
+static inttoIntBigEndian(InputStream theInputStream) + +
+           
+static inttoIntLittleEndian(InputStream theInputStream) + +
+           
+static longtoLong(byte[] abyte0) + +
+           
+static voidtoStream(OutputStream os, + byte[] theBytes) + +
+           
+static voidtoStream(OutputStream os, + File file) + +
+           
+static voidtoStream(OutputStream os, + int i) + +
+           
+static voidtoStream(OutputStream os, + String s) + +
+           
+static StringtoString(byte[] abyte0) + +
+           
+static StringtoString(byte[] abyte0, + int i, + int j) + +
+           
+static StringtoString(InputStream ins) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Bytes

+
+public Bytes()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getAsString

+
+public static String getAsString(Object[] theObject)
+
+
converts an object array into a String that is formated like a list +

+

+
Parameters:
theObject - Object[] +
Returns:
String
+
+
+
+ +

+getAsString

+
+public static String getAsString(byte[] theBytes)
+
+
+
+
+
+
+ +

+toInt

+
+public static int toInt(byte[] abyte0)
+
+
+
+
+
+
+ +

+toLong

+
+public static long toLong(byte[] abyte0)
+
+
+
+
+
+
+ +

+toFloat

+
+public static float toFloat(byte[] abyte0)
+
+
+
+
+
+
+ +

+toDouble

+
+public static double toDouble(byte[] abyte0)
+
+
+
+
+
+
+ +

+toBytes

+
+public static byte[] toBytes(int i)
+
+
+
+
+
+
+ +

+toBytes

+
+public static byte[] toBytes(int i,
+                             byte[] abyte0)
+
+
+
+
+
+
+ +

+toBytes

+
+public static byte[] toBytes(long l)
+
+
+
+
+
+
+ +

+toBytes

+
+public static byte[] toBytes(long l,
+                             byte[] abyte0)
+
+
+
+
+
+
+ +

+areEqual

+
+public static boolean areEqual(byte[] abyte0,
+                               byte[] abyte1)
+
+
+
+
+
+
+ +

+append

+
+public static byte[] append(byte[] abyte0,
+                            byte[] abyte1)
+
+
+
+
+
+
+ +

+append

+
+public static byte[] append(byte[] abyte0,
+                            byte[] abyte1,
+                            byte[] abyte2)
+
+
+
+
+
+
+ +

+copy

+
+public static byte[] copy(byte[] abyte0,
+                          int i)
+
+
+
+
+
+
+ +

+copy

+
+public static byte[] copy(byte[] abyte0,
+                          int i,
+                          int j)
+
+
+
+
+
+
+ +

+merge

+
+public static void merge(byte[] abyte0,
+                         byte[] abyte1,
+                         int i,
+                         int j,
+                         int k)
+
+
+
+
+
+
+ +

+merge

+
+public static void merge(byte[] abyte0,
+                         byte[] abyte1,
+                         int i)
+
+
+
+
+
+
+ +

+merge

+
+public static void merge(byte[] abyte0,
+                         byte[] abyte1)
+
+
+
+
+
+
+ +

+merge

+
+public static void merge(byte[] abyte0,
+                         byte[] abyte1,
+                         int i,
+                         int j)
+
+
+
+
+
+
+ +

+toString

+
+public static String toString(byte[] abyte0,
+                              int i,
+                              int j)
+
+
+
+
+
+
+ +

+toString

+
+public static String toString(byte[] abyte0)
+
+
+
+
+
+
+ +

+printBytes

+
+public static void printBytes(byte[] byteArray)
+
+
+
+
+
+
+ +

+toIntLittleEndian

+
+public static int toIntLittleEndian(InputStream theInputStream)
+                             throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+toIntBigEndian

+
+public static int toIntBigEndian(InputStream theInputStream)
+                          throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+toString

+
+public static String toString(InputStream ins)
+                       throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+toStream

+
+public static void toStream(OutputStream os,
+                            int i)
+                     throws Exception
+
+
+ +
Throws: +
Exception
+
+
+
+ +

+toStream

+
+public static void toStream(OutputStream os,
+                            String s)
+                     throws Exception
+
+
+ +
Throws: +
Exception
+
+
+
+ +

+toStream

+
+public static void toStream(OutputStream os,
+                            byte[] theBytes)
+                     throws Exception
+
+
+ +
Throws: +
Exception
+
+
+
+ +

+toByteArray

+
+public static byte[] toByteArray(InputStream ins)
+                          throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+toFile

+
+public static void toFile(InputStream ins,
+                          File file)
+                   throws FileNotFoundException,
+                          IOException
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+
+ +

+toStream

+
+public static void toStream(OutputStream os,
+                            File file)
+                     throws FileNotFoundException,
+                            Exception
+
+
+ +
Throws: +
FileNotFoundException +
Exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/Logger.html b/libraries/oscP5/reference/netP5/Logger.html new file mode 100644 index 0000000..8719681 --- /dev/null +++ b/libraries/oscP5/reference/netP5/Logger.html @@ -0,0 +1,613 @@ + + + + + + +Logger (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class Logger

+
+java.lang.Object
+  extended by netP5.Logger
+
+
+
+
public class Logger
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intALL + +
+           
+static intDEBUG + +
+           
+static intERROR + +
+           
+static int[]flags + +
+           
+static intINFO + +
+           
+static intOFF + +
+           
+static intON + +
+           
+static intPROCESS + +
+           
+static intWARNING + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Logger() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static StringgetTime() + +
+           
+static voidprint(String theMsg) + +
+           
+static voidprintBytes(byte[] byteArray) + +
+           
+static voidprintDebug(String theLocation, + String theMsg) + +
+           
+static voidprintError(String theLocation, + String theMsg) + +
+           
+static voidprintInfo(String theLocation, + String theMsg) + +
+           
+static voidprintln(String theMsg) + +
+           
+static voidprintProcess(String theLocation, + String theMsg) + +
+           
+static voidprintWarning(String theLocation, + String theMsg) + +
+           
+static voidset(int theIndex, + int theValue) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ON

+
+public static final int ON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+OFF

+
+public static final int OFF
+
+
+
See Also:
Constant Field Values
+
+
+ +

+ERROR

+
+public static final int ERROR
+
+
+
See Also:
Constant Field Values
+
+
+ +

+WARNING

+
+public static final int WARNING
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROCESS

+
+public static final int PROCESS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+INFO

+
+public static final int INFO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEBUG

+
+public static final int DEBUG
+
+
+
See Also:
Constant Field Values
+
+
+ +

+ALL

+
+public static final int ALL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+flags

+
+public static int[] flags
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Logger

+
+public Logger()
+
+
+ + + + + + + + +
+Method Detail
+ +

+set

+
+public static void set(int theIndex,
+                       int theValue)
+
+
+
+
+
+
+ +

+printError

+
+public static void printError(String theLocation,
+                              String theMsg)
+
+
+
+
+
+
+ +

+printProcess

+
+public static void printProcess(String theLocation,
+                                String theMsg)
+
+
+
+
+
+
+ +

+printWarning

+
+public static void printWarning(String theLocation,
+                                String theMsg)
+
+
+
+
+
+
+ +

+printInfo

+
+public static void printInfo(String theLocation,
+                             String theMsg)
+
+
+
+
+
+
+ +

+printDebug

+
+public static void printDebug(String theLocation,
+                              String theMsg)
+
+
+
+
+
+
+ +

+print

+
+public static void print(String theMsg)
+
+
+
+
+
+
+ +

+println

+
+public static void println(String theMsg)
+
+
+
+
+
+
+ +

+printBytes

+
+public static void printBytes(byte[] byteArray)
+
+
+
+
+
+
+ +

+getTime

+
+public static String getTime()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/Multicast.html b/libraries/oscP5/reference/netP5/Multicast.html new file mode 100644 index 0000000..ce735bc --- /dev/null +++ b/libraries/oscP5/reference/netP5/Multicast.html @@ -0,0 +1,428 @@ + + + + + + +Multicast (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class Multicast

+
+java.lang.Object
+  extended by netP5.AbstractMulticast
+      extended by netP5.Multicast
+
+
+
All Implemented Interfaces:
Runnable, UdpPacketListener
+
+
+
+
public class Multicast
extends AbstractMulticast
implements UdpPacketListener
+ + +

+Multicast is a method of forwarding IP datagrams to a group of interested receivers. + UDP is used as the transport portocol. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Multicast(Object theObject, + String theMulticastAddress, + int thePort) + +
+           
Multicast(Object theObject, + String theMulticastAddress, + int thePort, + int theBufferSize) + +
+          create a new instance of Multicast.
Multicast(UdpPacketListener theDatagramListener, + String theMulticastAddress, + int thePort) + +
+           
Multicast(UdpPacketListener theDatagramListener, + String theMulticastAddress, + int thePort, + int theBufferSize) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(NetListener theListener) + +
+           
+ NetListenergetListener(int theIndex) + +
+           
+ VectorgetListeners() + +
+           
+ voidprocess(DatagramPacket thePacket, + int thePort) + +
+           
+ voidremoveListener(NetListener theListener) + +
+           
+ + + + + + + +
Methods inherited from class netP5.AbstractMulticast
close, dispose, loopback, run, send, send, setDatagramSize, setLoopback, setTimeToLive, socket, start, timeToLive
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Multicast

+
+public Multicast(Object theObject,
+                 String theMulticastAddress,
+                 int thePort,
+                 int theBufferSize)
+
+
create a new instance of Multicast. the buffersize of the datagrams + is set to 1536 by default. +

+

+
Parameters:
theObject - Object
theMulticastAddress - String
thePort - int
theBufferSize - int
+
+
+ +

+Multicast

+
+public Multicast(Object theObject,
+                 String theMulticastAddress,
+                 int thePort)
+
+
+
+ +

+Multicast

+
+public Multicast(UdpPacketListener theDatagramListener,
+                 String theMulticastAddress,
+                 int thePort,
+                 int theBufferSize)
+
+
+
+ +

+Multicast

+
+public Multicast(UdpPacketListener theDatagramListener,
+                 String theMulticastAddress,
+                 int thePort)
+
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(DatagramPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface UdpPacketListener
+
+
+
Parameters:
thePacket - DatagramPacket
thePort - int
+
+
+
+ +

+addListener

+
+public void addListener(NetListener theListener)
+
+
+
+
+
+
+
+
+
+ +

+removeListener

+
+public void removeListener(NetListener theListener)
+
+
+
+
+
+
+
+
+
+ +

+getListener

+
+public NetListener getListener(int theIndex)
+
+
+
+
+
+
+
+
+
+ +

+getListeners

+
+public Vector getListeners()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetAddress.html b/libraries/oscP5/reference/netP5/NetAddress.html new file mode 100644 index 0000000..ce4439f --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetAddress.html @@ -0,0 +1,422 @@ + + + + + + +NetAddress (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class NetAddress

+
+java.lang.Object
+  extended by netP5.NetAddress
+
+
+
+
public class NetAddress
extends Object
+ + +

+NetAddress is an Object that contains an inetaddress + of an remote internet address, consisting of an + ip address and a port number. +

+ +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+ Stringname + +
+           
+  + + + + + + + + + + + + + + + + +
+Constructor Summary
NetAddress(InetAddress theInetAddress, + int thePort) + +
+           
NetAddress(NetAddress theNetAddress) + +
+           
NetAddress(String theAddress, + int thePort) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringaddress() + +
+          returns the remote ip address as string
+ InetAddressinetaddress() + +
+           
+ booleanisvalid() + +
+          check if the netAddress is valid.
+ intport() + +
+          returns the remote port number
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+name

+
+public String name
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+NetAddress

+
+public NetAddress(String theAddress,
+                  int thePort)
+
+
+
Parameters:
theAddress - String
thePort - int
+
+
+ +

+NetAddress

+
+public NetAddress(NetAddress theNetAddress)
+
+
+
+ +

+NetAddress

+
+public NetAddress(InetAddress theInetAddress,
+                  int thePort)
+
+
+
Parameters:
theInetAddress - InetAddress
thePort - int
+
+ + + + + + + + +
+Method Detail
+ +

+inetaddress

+
+public InetAddress inetaddress()
+
+
+ +
Returns:
InetAddress
+
+
+
+ +

+address

+
+public String address()
+
+
returns the remote ip address as string +

+

+ +
Returns:
String
+
+
+
+ +

+port

+
+public int port()
+
+
returns the remote port number +

+

+ +
Returns:
int
+
+
+
+ +

+isvalid

+
+public boolean isvalid()
+
+
check if the netAddress is valid. this is true if + the remote ip address was found. +

+

+ +
Returns:
boolean
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetAddressList.html b/libraries/oscP5/reference/netP5/NetAddressList.html new file mode 100644 index 0000000..c1b98bf --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetAddressList.html @@ -0,0 +1,460 @@ + + + + + + +NetAddressList (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class NetAddressList

+
+java.lang.Object
+  extended by netP5.NetAddressList
+
+
+
+
public class NetAddressList
extends Object
+ + +

+NetAddressList is an arraylist of netaddresses. +

+ +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NetAddressList() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(NetAddress theNetAddress) + +
+           
+ voidadd(String theAddress, + int thePort) + +
+           
+ booleancontains(NetAddress theNetAddress) + +
+           
+ booleancontains(String theIPaddress, + int thePort) + +
+           
+ NetAddressget(int theIndex) + +
+           
+ NetAddressget(String theIPaddress, + int thePort) + +
+           
+ ArrayListlist() + +
+           
+ voidremove(NetAddress theNetAddress) + +
+           
+ voidremove(String theAddress, + int thePort) + +
+           
+ voidset(NetAddress[] theList) + +
+           
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NetAddressList

+
+public NetAddressList()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(NetAddress theNetAddress)
+
+
+
Parameters:
theNetAddress - NetAddress
+
+
+
+ +

+add

+
+public void add(String theAddress,
+                int thePort)
+
+
+
Parameters:
theAddress - String
thePort - int
+
+
+
+ +

+remove

+
+public void remove(String theAddress,
+                   int thePort)
+
+
+
Parameters:
theAddress - String
thePort - int
+
+
+
+ +

+remove

+
+public void remove(NetAddress theNetAddress)
+
+
+
Parameters:
theNetAddress - NetAddress
+
+
+
+ +

+get

+
+public NetAddress get(String theIPaddress,
+                      int thePort)
+
+
+
+
+
+
+ +

+contains

+
+public boolean contains(NetAddress theNetAddress)
+
+
+
Parameters:
theNetAddress - NetAddress +
Returns:
boolean
+
+
+
+ +

+contains

+
+public boolean contains(String theIPaddress,
+                        int thePort)
+
+
+
Parameters:
theIPaddress - String
thePort - int +
Returns:
boolean
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+set

+
+public void set(NetAddress[] theList)
+
+
+
Parameters:
theList - NetAddress[]
+
+
+
+ +

+list

+
+public ArrayList list()
+
+
+ +
Returns:
ArrayList
+
+
+
+ +

+get

+
+public NetAddress get(int theIndex)
+
+
+
Parameters:
theIndex - int +
Returns:
NetAddress
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetInfo.html b/libraries/oscP5/reference/netP5/NetInfo.html new file mode 100644 index 0000000..ec3af8e --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetInfo.html @@ -0,0 +1,334 @@ + + + + + + +NetInfo (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class NetInfo

+
+java.lang.Object
+  extended by netP5.NetInfo
+
+
+
+
public class NetInfo
extends Object
+ + +

+some description +

+ +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NetInfo() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static StringgetHostAddress() + +
+           
+static Stringlan() + +
+           
+static voidmain(String[] args) + +
+           
+static voidprint() + +
+           
+static Stringwan() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NetInfo

+
+public NetInfo()
+
+
+ + + + + + + + +
+Method Detail
+ +

+print

+
+public static void print()
+
+
+
+
+
+
+ +

+getHostAddress

+
+public static String getHostAddress()
+
+
+
+
+
+
+ +

+lan

+
+public static String lan()
+
+
+
+
+
+
+ +

+wan

+
+public static String wan()
+
+
+
+
+
+
+ +

+main

+
+public static void main(String[] args)
+
+
+
Parameters:
args - String[]
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetListener.html b/libraries/oscP5/reference/netP5/NetListener.html new file mode 100644 index 0000000..990e5a8 --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetListener.html @@ -0,0 +1,223 @@ + + + + + + +NetListener (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Interface NetListener

+
+
+
public interface NetListener
+ + +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidnetEvent(NetMessage theNetMessage) + +
+           
+ voidnetStatus(NetStatus theStatus) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+netEvent

+
+void netEvent(NetMessage theNetMessage)
+
+
+
+
+
+
+ +

+netStatus

+
+void netStatus(NetStatus theStatus)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetMessage.html b/libraries/oscP5/reference/netP5/NetMessage.html new file mode 100644 index 0000000..adc6d8a --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetMessage.html @@ -0,0 +1,386 @@ + + + + + + +NetMessage (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class NetMessage

+
+java.lang.Object
+  extended by netP5.NetMessage
+
+
+
+
public class NetMessage
extends Object
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringaddress() + +
+           
+ byte[]getData() + +
+          get the data of the message as bytes.
+ DatagramPacketgetDatagramPacket() + +
+           
+ StringgetString() + +
+          get the data the message as string.
+ TcpPacketgetTcpPacket() + +
+           
+ InetAddressinetAddress() + +
+           
+ intport() + +
+          get the port the net message was received at.
+ intprotocol() + +
+          get the protocol type the message was sent over.
+ TcpClienttcpConnection() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getTcpPacket

+
+public TcpPacket getTcpPacket()
+
+
+
+
+
+
+ +

+getDatagramPacket

+
+public DatagramPacket getDatagramPacket()
+
+
+
+
+
+
+ +

+getData

+
+public byte[] getData()
+
+
get the data of the message as bytes. +

+

+ +
Returns:
+
+
+
+ +

+getString

+
+public String getString()
+
+
get the data the message as string. +

+

+ +
Returns:
+
+
+
+ +

+protocol

+
+public int protocol()
+
+
get the protocol type the message was sent over. + NetP5.TCP or NetP5.UDP are possible. +

+

+ +
Returns:
+
+
+
+ +

+port

+
+public int port()
+
+
get the port the net message was received at. +

+

+ +
Returns:
+
+
+
+ +

+tcpConnection

+
+public TcpClient tcpConnection()
+
+
+
+
+
+
+ +

+address

+
+public String address()
+
+
+
+
+
+
+ +

+inetAddress

+
+public InetAddress inetAddress()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetP5.html b/libraries/oscP5/reference/netP5/NetP5.html new file mode 100644 index 0000000..86219fa --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetP5.html @@ -0,0 +1,274 @@ + + + + + + +NetP5 (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Interface NetP5

+
+
+
public interface NetP5
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static booleanDEBUG + +
+           
+static intMULTICAST + +
+           
+static intTCP + +
+           
+static intUDP + +
+           
+static StringVERSION + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+VERSION

+
+static final String VERSION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEBUG

+
+static final boolean DEBUG
+
+
+
See Also:
Constant Field Values
+
+
+ +

+UDP

+
+static final int UDP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MULTICAST

+
+static final int MULTICAST
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TCP

+
+static final int TCP
+
+
+
See Also:
Constant Field Values
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/NetStatus.html b/libraries/oscP5/reference/netP5/NetStatus.html new file mode 100644 index 0000000..7293687 --- /dev/null +++ b/libraries/oscP5/reference/netP5/NetStatus.html @@ -0,0 +1,434 @@ + + + + + + +NetStatus (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class NetStatus

+
+java.lang.Object
+  extended by netP5.NetStatus
+
+
+
+
public class NetStatus
extends Object
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intCLIENT_CLOSED + +
+           
+static intCONNECTION_CLOSED + +
+           
+static intCONNECTION_FAILED + +
+           
+static intCONNECTION_REFUSED + +
+           
+static intCONNECTION_TERMINATED + +
+           
+static intDEFAULT + +
+           
+static intERROR + +
+           
+static intSEND_FAILED + +
+           
+static intSERVER_CLOSED + +
+           
+  + + + + + + + + + + +
+Constructor Summary
NetStatus(int theIndex) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ intid() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ERROR

+
+public static int ERROR
+
+
+
+
+
+ +

+DEFAULT

+
+public static int DEFAULT
+
+
+
+
+
+ +

+CONNECTION_CLOSED

+
+public static int CONNECTION_CLOSED
+
+
+
+
+
+ +

+CONNECTION_REFUSED

+
+public static int CONNECTION_REFUSED
+
+
+
+
+
+ +

+CONNECTION_TERMINATED

+
+public static int CONNECTION_TERMINATED
+
+
+
+
+
+ +

+CONNECTION_FAILED

+
+public static int CONNECTION_FAILED
+
+
+
+
+
+ +

+SERVER_CLOSED

+
+public static int SERVER_CLOSED
+
+
+
+
+
+ +

+CLIENT_CLOSED

+
+public static int CLIENT_CLOSED
+
+
+
+
+
+ +

+SEND_FAILED

+
+public static int SEND_FAILED
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+NetStatus

+
+public NetStatus(int theIndex)
+
+
+ + + + + + + + +
+Method Detail
+ +

+id

+
+public int id()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/StringUtils.html b/libraries/oscP5/reference/netP5/StringUtils.html new file mode 100644 index 0000000..5357371 --- /dev/null +++ b/libraries/oscP5/reference/netP5/StringUtils.html @@ -0,0 +1,1008 @@ + + + + + + +StringUtils (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class StringUtils

+
+java.lang.Object
+  extended by netP5.StringUtils
+
+
+
+
public class StringUtils
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static StringarrayToString(String[] theArray) + +
+           
+static StringarrayToString(String[] theArray, + int theStart, + int theEnd) + +
+           
+static StringcenterJustify(String source, + int length) + +
+          Creates a string of the given width with the given string left justified + (padded by an appropriate number of spaces in front and after it).
+static Stringduplicate(String source, + int copies) + +
+          Returns a String with the source String copied the specified number of + times.
+static String[]explode(String source) + +
+          Splits a string into an array with a space as delimiter.
+static Vectorexplode(String[] source, + int[] lengths) + +
+          Splits every String in an array at the specified lengths.
+static String[]explode(String source, + int[] lengths) + +
+          Splits a string at the specified lengths and returns an array of Strings.
+static String[]explode(String s, + String delimiter) + +
+          Splits a string into an array with the specified delimiter.
+static floatgetFloat(String theString) + +
+           
+static intgetInt(String theString) + +
+           
+static StringgetStackTrace(Throwable t) + +
+          Prints the stacktrace to a buffer and returns the buffer as a String.
+static Stringimplode(Object[] elements) + +
+          Combines an array to a string, using a comma and a space as delimiter.
+static Stringimplode(Object[] elements, + String delimiter) + +
+          Combines an array to a string, using the specified delimiter.
+static booleanisEmpty(String s) + +
+          Checks if a String is empty or null.
+static Stringleft(String source, + String searchFor) + +
+          Returns the substring to the left of the specified substring in the + specified String, starting from the left.
+static StringleftBack(String source, + String searchFor) + +
+          Returns the substring to the left of the specified substring in the + specified String, starting from the right.
+static StringleftJustify(String source, + int length) + +
+          Creates a string of the given width with the given string left justified + (followed by an appropriate number of spaces).
+static Stringmiddle(String source, + int startIndex, + int length) + +
+          Returns a substring of a String, starting from specified index and with + specified length.
+static Stringmiddle(String source, + String start, + String end) + +
+          Returns the substring between two substrings.
+static Stringremove(String source, + char searchFor) + +
+          Removes all instances of a character in a String.
+static Stringremove(String source, + String searchFor) + +
+          Removes all instances of a substring in a String.
+static Stringremove(String source, + String[] searchFor) + +
+          Removes all instances of substrings in a String.
+static StringremoveDuplicates(String source, + String searchFor) + +
+          Removes duplicates of a substring in a String.
+static Stringreplace(String source, + String[] searchFor, + String replaceWith) + +
+          Replaces several substrings in a string.
+static Stringreplace(String source, + String searchFor, + String replaceWith) + +
+          Replaces substrings in a string.
+static Stringright(String source, + String searchFor) + +
+          Returns the substring to the right of the specified substring in the + specified String, starting from the left.
+static StringrightBack(String source, + String searchFor) + +
+          Returns the substring to the right of the specified substring in the + specified String, starting from the right.
+static StringrightJustify(String source, + int length) + +
+          Creates a string of the given width with the given string right justified + (with an appropriate number of spaces before it).
+static String[]slice(int theNum, + String[] theStringArray) + +
+           
+static Stringspaces(int length) + +
+          Returns a String with the specified number of spaces.
+static charswitchCase(char source) + +
+          Switches the case of the supplied character.
+static StringswitchCase(String source) + +
+          Switches the case of the supplied String.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+right

+
+public static String right(String source,
+                           String searchFor)
+
+
Returns the substring to the right of the specified substring in the + specified String, starting from the left. +

+

+
Parameters:
source - the source String to search.
searchFor - the substring to search for in source. +
Returns:
the substring that is to the right of searchFor in source.
+
+
+
+ +

+rightBack

+
+public static String rightBack(String source,
+                               String searchFor)
+
+
Returns the substring to the right of the specified substring in the + specified String, starting from the right. +

+

+
Parameters:
source - the source String to search.
searchFor - the substring to search for in source. +
Returns:
the substring that is to the right of searchFor in source, + starting from the right.
+
+
+
+ +

+left

+
+public static String left(String source,
+                          String searchFor)
+
+
Returns the substring to the left of the specified substring in the + specified String, starting from the left. +

+

+
Parameters:
source - the source String to search.
searchFor - the substring to search for in source. +
Returns:
the substring that is to the left of searchFor in source.
+
+
+
+ +

+leftBack

+
+public static String leftBack(String source,
+                              String searchFor)
+
+
Returns the substring to the left of the specified substring in the + specified String, starting from the right. +

+

+
Parameters:
source - the source String to search.
searchFor - the substring to search for in source. +
Returns:
the substring that is to the left of searchFor in source, + starting from the right.
+
+
+
+ +

+middle

+
+public static String middle(String source,
+                            String start,
+                            String end)
+
+
Returns the substring between two substrings. I.e. + StringUtils.middle("This i a big challenge", "a", "challenge") returns " + big ". +

+

+
Parameters:
source - the String to search.
start - the String to the left to search for, from the left.
end - the String to the right to search for, from the right.
+
+
+
+ +

+middle

+
+public static String middle(String source,
+                            int startIndex,
+                            int length)
+
+
Returns a substring of a String, starting from specified index and with + specified length. I. e. StringUtils.middle("This is a big challenge", 5, + 6) returns " is a " +

+

+
Parameters:
source - the String to get a substring from.
startIndex - the index in the source String to get the substring from.
length - the length of the substring to return.
+
+
+
+ +

+replace

+
+public static String replace(String source,
+                             String searchFor,
+                             String replaceWith)
+
+
Replaces substrings in a string. +

+

+
Parameters:
source - the source String to replace substrings in.
searchFor - the string to search for.
replaceWith - the string to replace all found searchFor-substrings with.
+
+
+
+ +

+replace

+
+public static String replace(String source,
+                             String[] searchFor,
+                             String replaceWith)
+
+
Replaces several substrings in a string. +

+

+
Parameters:
source - the source String to replace substrings in.
searchFor - the substrings to search for.
replaceWith - what to replace every searchFor with,
+
+
+
+ +

+explode

+
+public static Vector explode(String[] source,
+                             int[] lengths)
+
+
Splits every String in an array at the specified lengths. + + Example:
+ String source[] = { "123a123b123c123d", "Bla1bla2bla3bla4bla5bla6bla7" };
+ int[] lengths = { 3, 1, 3, 1 };
+ Vector result = StringUtils.explode(source, lengths);
+ Object element = null;
+ String[] rowElements = null;
+ Enumeration enum = result.elements();
+ while (enum.hasMoreElements()) {
+        element = enum.nextElement();
+        if (element instanceof String[]) {
+                rowElements = (String[]) element;
+                for (int i = 0; i < rowElements.length; i++) {
+                        System.out.println(rowElements[i]);
+                }
+        }
+ }
+ 
The result that will be output: 123 a 123 b + + Bla 1 bla 2 +

+

+ +
Returns:
a Vector containing String arrays (the rows).
+
+
+
+ +

+explode

+
+public static String[] explode(String source,
+                               int[] lengths)
+
+
Splits a string at the specified lengths and returns an array of Strings. +

+

+
Parameters:
source - the String to split. +
Returns:
an array of Strings with the same number of elements as the + number of elements in the lengths argument. The length of each + String element is specified by the correspondent lengths array + element. +
Throws: +
IndexOutOfBoundsException - if any of the length´s are invalid.
+
+
+
+ +

+explode

+
+public static String[] explode(String source)
+
+
Splits a string into an array with a space as delimiter. +

+

+
Parameters:
source - the source String to explode. +
Returns:
an array of strings that are made out of splitting the string at + the spaces.
+
+
+
+ +

+explode

+
+public static String[] explode(String s,
+                               String delimiter)
+
+
Splits a string into an array with the specified delimiter. Original code + Copyright (C) 2001,2002 Stephen Ostermiller + http://ostermiller.org/utils/StringHelper.java.html + +

+ This method is meant to be similar to the split function in other + programming languages but it does not use regular expressions. Rather the + String is split on a single String literal. It is equivalent to the +

+

+
Parameters:
s - the String to explode.
delimiter - the delimiter where to split the string. +
Returns:
an array of strings that are made out of splitting the string at + the specified delimiter. +
Throws: +
NullPointerException - if s is null.
+
+
+
+ +

+slice

+
+public static String[] slice(int theNum,
+                             String[] theStringArray)
+
+
+
+
+
+
+ +

+implode

+
+public static String implode(Object[] elements,
+                             String delimiter)
+
+
Combines an array to a string, using the specified delimiter. +

+

+
Parameters:
elements - the array to combine to a single string.
delimiter - the delimiter to put between the combined elements. +
Returns:
the array combined to a string.
+
+
+
+ +

+implode

+
+public static String implode(Object[] elements)
+
+
Combines an array to a string, using a comma and a space as delimiter. +

+

+
Parameters:
elements - the array to combine to a single string. +
Returns:
the array combined to a string.
+
+
+
+ +

+remove

+
+public static String remove(String source,
+                            char searchFor)
+
+
Removes all instances of a character in a String. +

+

+
Parameters:
source - the String to remove substring in.
searchFor - the character to remove. +
Returns:
the replaced String.
+
+
+
+ +

+remove

+
+public static String remove(String source,
+                            String searchFor)
+
+
Removes all instances of a substring in a String. +

+

+
Parameters:
source - the String to remove substring in.
searchFor - the substring to remove. +
Returns:
the replaced String.
+
+
+
+ +

+remove

+
+public static String remove(String source,
+                            String[] searchFor)
+
+
Removes all instances of substrings in a String. +

+

+
Parameters:
source - the String to remove substrings in.
searchFor - an array of substrings to remove from the source String. +
Returns:
the replaced String.
+
+
+
+ +

+removeDuplicates

+
+public static String removeDuplicates(String source,
+                                      String searchFor)
+
+
Removes duplicates of a substring in a String. Case sensitive. +

+

+
Parameters:
source - the String to remove duplicates in.
searchFor - the substring that can only occur one at a time, several can + exist in the source though.
+
+
+
+ +

+getStackTrace

+
+public static String getStackTrace(Throwable t)
+                            throws IOException
+
+
Prints the stacktrace to a buffer and returns the buffer as a String. +

+

+
Parameters:
t - the Throwable you wnat to generate a stacktrace for. +
Returns:
the stacktrace of the supplied Throwable. +
Throws: +
IOException
+
+
+
+ +

+isEmpty

+
+public static boolean isEmpty(String s)
+
+
Checks if a String is empty or null. +

+

+
Parameters:
s - the String to test if it is empty or null. +
Returns:
true if the String is null or empty ("").
+
+
+
+ +

+leftJustify

+
+public static String leftJustify(String source,
+                                 int length)
+
+
Creates a string of the given width with the given string left justified + (followed by an appropriate number of spaces). +

+

+
Parameters:
source - the String to justify
length - the length of the resulting String +
Returns:
the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.
+
+
+
+ +

+rightJustify

+
+public static String rightJustify(String source,
+                                  int length)
+
+
Creates a string of the given width with the given string right justified + (with an appropriate number of spaces before it). +

+

+
Parameters:
source - the String to justify
length - the length of the resulting String +
Returns:
the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.
+
+
+
+ +

+centerJustify

+
+public static String centerJustify(String source,
+                                   int length)
+
+
Creates a string of the given width with the given string left justified + (padded by an appropriate number of spaces in front and after it). +

+

+
Parameters:
source - the String to justify
length - the length of the resulting String +
Returns:
the source String padded with spaces to fill up the length. If + the source string is longer than the length argument, the source + String is returned.
+
+
+
+ +

+spaces

+
+public static String spaces(int length)
+
+
Returns a String with the specified number of spaces. +

+

+
Parameters:
length - the number of spaces to return. +
Returns:
a String consisting of the specified number of spaces.
+
+
+
+ +

+duplicate

+
+public static String duplicate(String source,
+                               int copies)
+
+
Returns a String with the source String copied the specified number of + times. +

+

+
Parameters:
source - the source String to copy.
length - the number of copies of source to return. +
Returns:
a String consisting of the specified source String copied the + specified number of times.
+
+
+
+ +

+switchCase

+
+public static String switchCase(String source)
+
+
Switches the case of the supplied String. Any lower case characters will + be uppercase and vice versa. +

+

+
Parameters:
source - the String to switch case of. +
Returns:
the supplied String with switched case.
+
+
+
+ +

+switchCase

+
+public static char switchCase(char source)
+
+
Switches the case of the supplied character. A lower case character will + be uppercase and vice versa. +

+

+
Parameters:
source - the character to switch case of. +
Returns:
the supplied character with switched case.
+
+
+
+ +

+getInt

+
+public static int getInt(String theString)
+
+
+
+
+
+
+ +

+getFloat

+
+public static float getFloat(String theString)
+
+
+
+
+
+
+ +

+arrayToString

+
+public static String arrayToString(String[] theArray)
+
+
+
+
+
+
+ +

+arrayToString

+
+public static String arrayToString(String[] theArray,
+                                   int theStart,
+                                   int theEnd)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/TcpClient.html b/libraries/oscP5/reference/netP5/TcpClient.html new file mode 100644 index 0000000..0781ef2 --- /dev/null +++ b/libraries/oscP5/reference/netP5/TcpClient.html @@ -0,0 +1,473 @@ + + + + + + +TcpClient (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class TcpClient

+
+java.lang.Object
+  extended by netP5.AbstractTcpClient
+      extended by netP5.TcpClient
+
+
+
All Implemented Interfaces:
Runnable
+
+
+
+
public class TcpClient
extends AbstractTcpClient
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class netP5.AbstractTcpClient
MODE_NEWLINE, MODE_READLINE, MODE_STREAM, MODE_TERMINATED
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
TcpClient(AbstractTcpServer theTcpServer, + Socket theSocket, + TcpPacketListener theTcpPacketListener, + int theServerPort, + int theMode) + +
+           
TcpClient(NetAddress theNetAddress) + +
+           
TcpClient(Object theObject, + NetAddress theNetAddress) + +
+           
TcpClient(Object theObject, + String theAddress, + int thePort) + +
+           
TcpClient(Object theObject, + String theAddress, + int thePort, + int theMode) + +
+           
TcpClient(String theAddress, + int thePort) + +
+           
TcpClient(TcpPacketListener theListener, + String theServerAddress, + int theServerPort, + int theMode) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidhandleInput() + +
+           
+ voidhandleStatus(int theIndex) + +
+           
+ Stringname() + +
+           
+ voidsetName(String theName) + +
+           
+ + + + + + + +
Methods inherited from class netP5.AbstractTcpClient
dispose, equals, equals, getString, getStringBuffer, listener, mode, netaddress, netAddress, reconnect, run, send, send, send, serverport, setTerminator, socket
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TcpClient

+
+public TcpClient(Object theObject,
+                 String theAddress,
+                 int thePort)
+
+
+
Parameters:
theAddress - String
thePort - int
+
+
+ +

+TcpClient

+
+public TcpClient(Object theObject,
+                 String theAddress,
+                 int thePort,
+                 int theMode)
+
+
+
Parameters:
theObject - Object
theAddress - String
thePort - int
theMode - int
+
+
+ +

+TcpClient

+
+public TcpClient(TcpPacketListener theListener,
+                 String theServerAddress,
+                 int theServerPort,
+                 int theMode)
+
+
+
Parameters:
theListener - TcpPacketListener
theServerAddress - String
theServerPort - int
theMode - int
+
+
+ +

+TcpClient

+
+public TcpClient(Object theObject,
+                 NetAddress theNetAddress)
+
+
+
Parameters:
theNetAddress - NetAddress
+
+
+ +

+TcpClient

+
+public TcpClient(NetAddress theNetAddress)
+
+
+
Parameters:
theNetAddress - NetAddress
+
+
+ +

+TcpClient

+
+public TcpClient(String theAddress,
+                 int thePort)
+
+
+
Parameters:
theAddress - String
thePort - int
+
+
+ +

+TcpClient

+
+public TcpClient(AbstractTcpServer theTcpServer,
+                 Socket theSocket,
+                 TcpPacketListener theTcpPacketListener,
+                 int theServerPort,
+                 int theMode)
+
+
+ + + + + + + + +
+Method Detail
+ +

+handleStatus

+
+public void handleStatus(int theIndex)
+
+
+
Specified by:
handleStatus in class AbstractTcpClient
+
+
+
Parameters:
theIndex - int
+
+
+
+ +

+handleInput

+
+public void handleInput()
+
+
+
Specified by:
handleInput in class AbstractTcpClient
+
+
+
+
+
+
+ +

+name

+
+public String name()
+
+
+ +
Returns:
String
+
+
+
+ +

+setName

+
+public void setName(String theName)
+
+
+
Parameters:
theName - String
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/TcpPacket.html b/libraries/oscP5/reference/netP5/TcpPacket.html new file mode 100644 index 0000000..bab40ac --- /dev/null +++ b/libraries/oscP5/reference/netP5/TcpPacket.html @@ -0,0 +1,311 @@ + + + + + + +TcpPacket (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class TcpPacket

+
+java.lang.Object
+  extended by netP5.TcpPacket
+
+
+
+
public class TcpPacket
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TcpPacket(TcpClient theTcpClient, + StringBuffer theBuffer, + byte[] theBytes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ byte[]getData() + +
+           
+ StringgetString() + +
+           
+ StringBuffergetStringBuffer() + +
+           
+ TcpClientgetTcpConnection() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TcpPacket

+
+public TcpPacket(TcpClient theTcpClient,
+                 StringBuffer theBuffer,
+                 byte[] theBytes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getTcpConnection

+
+public TcpClient getTcpConnection()
+
+
+
+
+
+
+ +

+getString

+
+public String getString()
+
+
+
+
+
+
+ +

+getStringBuffer

+
+public StringBuffer getStringBuffer()
+
+
+
+
+
+
+ +

+getData

+
+public byte[] getData()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/TcpPacketListener.html b/libraries/oscP5/reference/netP5/TcpPacketListener.html new file mode 100644 index 0000000..04cc6d2 --- /dev/null +++ b/libraries/oscP5/reference/netP5/TcpPacketListener.html @@ -0,0 +1,247 @@ + + + + + + +TcpPacketListener (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Interface TcpPacketListener

+
+
All Known Implementing Classes:
AbstractTcpServer, OscNetManager, OscP5, TcpServer
+
+
+
+
public interface TcpPacketListener
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidprocess(TcpPacket theTcpPacket, + int thePort) + +
+           
+ voidremove(AbstractTcpClient theClient) + +
+           
+ voidstatus(int theStatus) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+process

+
+void process(TcpPacket theTcpPacket,
+             int thePort)
+
+
+
+
+
+
+ +

+status

+
+void status(int theStatus)
+
+
+
+
+
+
+ +

+remove

+
+void remove(AbstractTcpClient theClient)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/TcpServer.html b/libraries/oscP5/reference/netP5/TcpServer.html new file mode 100644 index 0000000..a79b380 --- /dev/null +++ b/libraries/oscP5/reference/netP5/TcpServer.html @@ -0,0 +1,463 @@ + + + + + + +TcpServer (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class TcpServer

+
+java.lang.Object
+  extended by netP5.AbstractTcpServer
+      extended by netP5.TcpServer
+
+
+
All Implemented Interfaces:
Runnable, TcpPacketListener
+
+
+
+
public class TcpServer
extends AbstractTcpServer
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class netP5.AbstractTcpServer
MODE_NEWLINE, MODE_READLINE, MODE_STREAM, MODE_TERMINATED
+  + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
TcpServer(int thePort) + +
+           
TcpServer(int thePort, + int theMode) + +
+           
TcpServer(Object theObject, + int thePort) + +
+           
TcpServer(Object theObject, + int thePort, + int theMode) + +
+           
TcpServer(TcpPacketListener theTcpPacketListener, + int thePort, + int theMode) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(NetListener theListener) + +
+           
+ NetListenergetListener(int theIndex) + +
+           
+ VectorgetListeners() + +
+           
+ voidhandleInput(TcpPacket thePacket, + int thePort) + +
+           
+ voidremoveListener(NetListener theListener) + +
+           
+ voidstatus(int theIndex) + +
+           
+ + + + + + + +
Methods inherited from class netP5.AbstractTcpServer
ban, dispose, getClient, getClients, process, remove, run, send, send, size, socket, unBan
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TcpServer

+
+public TcpServer(int thePort)
+
+
+
Parameters:
thePort - int
+
+
+ +

+TcpServer

+
+public TcpServer(Object theObject,
+                 int thePort)
+
+
+
Parameters:
theObject - Object
thePort - int
+
+
+ +

+TcpServer

+
+public TcpServer(Object theObject,
+                 int thePort,
+                 int theMode)
+
+
+
Parameters:
theObject - Object
thePort - int
theMode - int
+
+
+ +

+TcpServer

+
+public TcpServer(int thePort,
+                 int theMode)
+
+
+
Parameters:
thePort - int
theMode - int
+
+
+ +

+TcpServer

+
+public TcpServer(TcpPacketListener theTcpPacketListener,
+                 int thePort,
+                 int theMode)
+
+
+
Parameters:
theTcpPacketListener - TcpPacketListener
thePort - int
theMode - int
+
+ + + + + + + + +
+Method Detail
+ +

+handleInput

+
+public void handleInput(TcpPacket thePacket,
+                        int thePort)
+
+
+
Specified by:
handleInput in class AbstractTcpServer
+
+
+
Parameters:
thePacket - TcpPacket
thePort - int
+
+
+
+ +

+status

+
+public void status(int theIndex)
+
+
+
Parameters:
theIndex - int
+
+
+
+ +

+addListener

+
+public void addListener(NetListener theListener)
+
+
+
+
+
+
+ +

+removeListener

+
+public void removeListener(NetListener theListener)
+
+
+
+
+
+
+ +

+getListener

+
+public NetListener getListener(int theIndex)
+
+
+
+
+
+
+ +

+getListeners

+
+public Vector getListeners()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/UdpClient.html b/libraries/oscP5/reference/netP5/UdpClient.html new file mode 100644 index 0000000..7edd272 --- /dev/null +++ b/libraries/oscP5/reference/netP5/UdpClient.html @@ -0,0 +1,266 @@ + + + + + + +UdpClient (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class UdpClient

+
+java.lang.Object
+  extended by netP5.AbstractUdpClient
+      extended by netP5.UdpClient
+
+
+
+
public class UdpClient
extends AbstractUdpClient
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
UdpClient() + +
+           
UdpClient(NetAddress theNetAddress) + +
+           
UdpClient(String theAddr, + int thePort) + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class netP5.AbstractUdpClient
send, send, send, send, send, send, socket
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UdpClient

+
+public UdpClient()
+
+
+
+ +

+UdpClient

+
+public UdpClient(String theAddr,
+                 int thePort)
+
+
+
+ +

+UdpClient

+
+public UdpClient(NetAddress theNetAddress)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/UdpPacketListener.html b/libraries/oscP5/reference/netP5/UdpPacketListener.html new file mode 100644 index 0000000..9a70362 --- /dev/null +++ b/libraries/oscP5/reference/netP5/UdpPacketListener.html @@ -0,0 +1,213 @@ + + + + + + +UdpPacketListener (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Interface UdpPacketListener

+
+
All Known Implementing Classes:
Multicast, OscNetManager, OscP5, UdpServer
+
+
+
+
public interface UdpPacketListener
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidprocess(DatagramPacket theDatagramPacket, + int thePort) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+process

+
+void process(DatagramPacket theDatagramPacket,
+             int thePort)
+
+
+
Parameters:
theDatagramPacket - DatagramPacket
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/UdpServer.html b/libraries/oscP5/reference/netP5/UdpServer.html new file mode 100644 index 0000000..700e9b7 --- /dev/null +++ b/libraries/oscP5/reference/netP5/UdpServer.html @@ -0,0 +1,411 @@ + + + + + + +UdpServer (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +netP5 +
+Class UdpServer

+
+java.lang.Object
+  extended by netP5.AbstractUdpServer
+      extended by netP5.UdpServer
+
+
+
All Implemented Interfaces:
Runnable, UdpPacketListener
+
+
+
+
public class UdpServer
extends AbstractUdpServer
implements UdpPacketListener
+ + +

+

+
Author:
+
andreas schlegel
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
UdpServer(Object theObject, + int thePort) + +
+           
UdpServer(Object theObject, + int thePort, + int theBufferSize) + +
+          new UDP server.
UdpServer(UdpPacketListener theListener, + int thePort, + int theBufferSize) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(NetListener theListener) + +
+          add a listener to the udp server.
+ NetListenergetListener(int theIndex) + +
+           
+ VectorgetListeners() + +
+           
+ voidprocess(DatagramPacket thePacket, + int thePort) + +
+           
+ voidremoveListener(NetListener theListener) + +
+           
+ + + + + + + +
Methods inherited from class netP5.AbstractUdpServer
dispose, run, send, send, send, send, socket, start
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UdpServer

+
+public UdpServer(Object theObject,
+                 int thePort,
+                 int theBufferSize)
+
+
new UDP server. + by default the buffersize of a udp packet is 1536 bytes. you can set + your own individual buffersize with the third parameter int in the constructor. +

+

+
Parameters:
theObject - Object
thePort - int
theBufferSize - int
+
+
+ +

+UdpServer

+
+public UdpServer(Object theObject,
+                 int thePort)
+
+
+
+ +

+UdpServer

+
+public UdpServer(UdpPacketListener theListener,
+                 int thePort,
+                 int theBufferSize)
+
+
+
Parameters:
theListener -
thePort -
theBufferSize -
+
+ + + + + + + + +
+Method Detail
+ +

+process

+
+public void process(DatagramPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface UdpPacketListener
+
+
+
Parameters:
thePacket - DatagramPacket
thePort - int
+
+
+
+ +

+addListener

+
+public void addListener(NetListener theListener)
+
+
add a listener to the udp server. each incoming packet will be forwarded + to the listener. +

+

+
+
+
+
Parameters:
theListener -
+
+
+
+ +

+removeListener

+
+public void removeListener(NetListener theListener)
+
+
+
+
+
+
Parameters:
theListener -
+
+
+
+ +

+getListener

+
+public NetListener getListener(int theIndex)
+
+
+
+
+
+
Parameters:
theIndex - +
Returns:
+
+
+
+ +

+getListeners

+
+public Vector getListeners()
+
+
+
+
+
+ +
Returns:
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/package-frame.html b/libraries/oscP5/reference/netP5/package-frame.html new file mode 100644 index 0000000..49c374e --- /dev/null +++ b/libraries/oscP5/reference/netP5/package-frame.html @@ -0,0 +1,85 @@ + + + + + + +netP5 (Javadocs: oscP5) + + + + + + + + + + + +netP5 + + + + +
+Interfaces  + +
+NetListener +
+NetP5 +
+TcpPacketListener +
+UdpPacketListener
+ + + + + + +
+Classes  + +
+AbstractMulticast +
+AbstractTcpClient +
+AbstractTcpServer +
+AbstractUdpClient +
+AbstractUdpServer +
+Bytes +
+Logger +
+Multicast +
+NetAddress +
+NetAddressList +
+NetInfo +
+NetMessage +
+NetStatus +
+StringUtils +
+TcpClient +
+TcpPacket +
+TcpServer +
+UdpClient +
+UdpServer
+ + + + diff --git a/libraries/oscP5/reference/netP5/package-summary.html b/libraries/oscP5/reference/netP5/package-summary.html new file mode 100644 index 0000000..186e368 --- /dev/null +++ b/libraries/oscP5/reference/netP5/package-summary.html @@ -0,0 +1,255 @@ + + + + + + +netP5 (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package netP5 +

+ + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
NetListener 
NetP5 
TcpPacketListener 
UdpPacketListener 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractMulticast 
AbstractTcpClient 
AbstractTcpServer 
AbstractUdpClient 
AbstractUdpServer 
Bytes 
Logger 
MulticastMulticast is a method of forwarding IP datagrams to a group of interested receivers.
NetAddressNetAddress is an Object that contains an inetaddress + of an remote internet address, consisting of an + ip address and a port number.
NetAddressListNetAddressList is an arraylist of netaddresses.
NetInfosome description
NetMessage 
NetStatus 
StringUtils 
TcpClient 
TcpPacket 
TcpServer 
UdpClient 
UdpServer 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/netP5/package-tree.html b/libraries/oscP5/reference/netP5/package-tree.html new file mode 100644 index 0000000..98492d1 --- /dev/null +++ b/libraries/oscP5/reference/netP5/package-tree.html @@ -0,0 +1,172 @@ + + + + + + +netP5 Class Hierarchy (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package netP5 +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscArgument.html b/libraries/oscP5/reference/oscP5/OscArgument.html new file mode 100644 index 0000000..9bcf998 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscArgument.html @@ -0,0 +1,1160 @@ + + + + + + +OscArgument (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscArgument

+
+java.lang.Object
+  extended by oscP5.OscArgument
+
+
+
+
public class OscArgument
extends Object
+ + +

+an osc argument contains one value of values from a received osc message. + you can convert the value into the required format, e.g. from Object to int + theOscMessage.get(0).intValue(); +

+ +

+

+ +
+Example
/**
+ * oscP5oscArgument by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an alternative way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+  /* send an OSC message to this sketch */
+  oscP5.send("/test",new Object[] {new Integer("1"), new Float(2.0),"test string."}, myRemoteLocation);
+  
+}
+
+void draw() {
+  background(0);  
+}
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  // get the first osc argument
+      float secondValue = theOscMessage.get(1).floatValue(); // get the second osc argument
+      String thirdValue = theOscMessage.get(2).stringValue(); // get the third osc argument
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }
+  }
+  println("### received an osc message. with address pattern "+
+          theOscMessage.addrPattern()+" typetag "+ theOscMessage.typetag());
+}
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OscArgument() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ byte[]blobValue() + +
+          get the byte array (blob) of the osc argument.
+ booleanbooleanValue() + +
+          get the boolean value of the osc argument.
+ byte[]bytesValue() + +
+          get the byte array of the osc argument.
+ charcharValue() + +
+          get the char value of the osc argument.
+ doubledoubleValue() + +
+          get the double value of the osc argument.
+ floatfloatValue() + +
+          get the float value of the osc argument.
+ intintValue() + +
+          get the int value of the osc argument.
+ longlongValue() + +
+          get the long value of the osc argument.
+ int[]midiValue() + +
+           
+ StringstringValue() + +
+          get the String value of the osc argument.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OscArgument

+
+public OscArgument()
+
+
+ + + + + + + + +
+Method Detail
+ +

+intValue

+
+public int intValue()
+
+
get the int value of the osc argument. +

+

+ +
Returns:
int +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+charValue

+
+public char charValue()
+
+
get the char value of the osc argument. +

+

+ +
Returns:
char +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+floatValue

+
+public float floatValue()
+
+
get the float value of the osc argument. +

+

+ +
Returns:
float +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+doubleValue

+
+public double doubleValue()
+
+
get the double value of the osc argument. +

+

+ +
Returns:
double +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+longValue

+
+public long longValue()
+
+
get the long value of the osc argument. +

+

+ +
Returns:
long +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+booleanValue

+
+public boolean booleanValue()
+
+
get the boolean value of the osc argument. +

+

+ +
Returns:
boolean +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+stringValue

+
+public String stringValue()
+
+
get the String value of the osc argument. +

+

+ +
Returns:
String +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+ +
Returns:
String
+
+
+
+ +

+bytesValue

+
+public byte[] bytesValue()
+
+
get the byte array of the osc argument. +

+

+ +
Returns:
byte[] +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+blobValue

+
+public byte[] blobValue()
+
+
get the byte array (blob) of the osc argument. +

+

+ +
Returns:
byte[] +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+midiValue

+
+public int[] midiValue()
+
+
+ +
Returns:
int[]
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscBundle.html b/libraries/oscP5/reference/oscP5/OscBundle.html new file mode 100644 index 0000000..e3c10d9 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscBundle.html @@ -0,0 +1,765 @@ + + + + + + +OscBundle (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscBundle

+
+java.lang.Object
+  extended by oscP5.OscPatcher
+      extended by oscP5.OscPacket
+          extended by oscP5.OscBundle
+
+
+
+
public class OscBundle
extends OscPacket
+ + +

+Osc Bundles are collections of Osc Messages. use bundles to send multiple + osc messages to one destination. the OscBundle timetag is supported for + sending but not for receiving yet. +

+ +

+

+ +
+Example
/**
+ * oscP5bundle by andreas schlegel
+ * an osc broadcast server.
+ * example shows how to create and send osc bundles. 
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create an osc bundle */
+  OscBundle myBundle = new OscBundle();
+  
+  /* createa new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  myMessage.add("abc");
+  
+  /* add an osc message to the osc bundle */
+  myBundle.add(myMessage);
+  
+  /* reset and clear the myMessage object for refill. */
+  myMessage.clear();
+  
+  /* refill the osc message object again */
+  myMessage.setAddrPattern("/test2");
+  myMessage.add("defg");
+  myBundle.add(myMessage);
+  
+  myBundle.setTimetag(myBundle.now() + 10000);
+  /* send the osc bundle, containing 2 osc messages, to a remote location. */
+  oscP5.send(myBundle, myRemoteLocation);
+}
+
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  print(" typetag: "+theOscMessage.typetag());
+  println(" timetag: "+theOscMessage.timetag());
+}
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OscBundle() + +
+          instantiate a new OscBundle object.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(OscMessage theOscMessage) + +
+          add an osc message to the osc bundle.
+ voidclear() + +
+          clear and reset the osc bundle for reusing.
+ byte[]getBytes() + +
+           
+ OscMessagegetMessage(int theIndex) + +
+          request an osc message inside the osc bundle array,
+static longnow() + +
+          returns the current time in milliseconds.
+ voidremove(int theIndex) + +
+          remove an OscMessage from an OscBundle.
+ voidremove(OscMessage theOscMessage) + +
+           
+ voidsetTimetag(long theTime) + +
+          set the timetag of an osc bundle.
+ intsize() + +
+          get the size of the osc bundle array which contains the osc messages.
+ byte[]timetag() + +
+          returns a timetag as byte array.
+ + + + + + + +
Methods inherited from class oscP5.OscPacket
address, netaddress, netAddress, port, tcpConnection
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OscBundle

+
+public OscBundle()
+
+
instantiate a new OscBundle object. +

+

+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(OscMessage theOscMessage)
+
+
add an osc message to the osc bundle. +

+

+
Parameters:
theOscMessage - OscMessage
+
+
+
+ +

+clear

+
+public void clear()
+
+
clear and reset the osc bundle for reusing. +

+

+ +
+Example
/**
+ * oscP5bundle by andreas schlegel
+ * an osc broadcast server.
+ * example shows how to create and send osc bundles. 
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create an osc bundle */
+  OscBundle myBundle = new OscBundle();
+  
+  /* createa new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  myMessage.add("abc");
+  
+  /* add an osc message to the osc bundle */
+  myBundle.add(myMessage);
+  
+  /* reset and clear the myMessage object for refill. */
+  myMessage.clear();
+  
+  /* refill the osc message object again */
+  myMessage.setAddrPattern("/test2");
+  myMessage.add("defg");
+  myBundle.add(myMessage);
+  
+  myBundle.setTimetag(myBundle.now() + 10000);
+  /* send the osc bundle, containing 2 osc messages, to a remote location. */
+  oscP5.send(myBundle, myRemoteLocation);
+}
+
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  print(" typetag: "+theOscMessage.typetag());
+  println(" timetag: "+theOscMessage.timetag());
+}
+
+
+
+
+ +

+remove

+
+public void remove(int theIndex)
+
+
remove an OscMessage from an OscBundle. +

+

+
Parameters:
theIndex - int
+
+
+
+ +

+remove

+
+public void remove(OscMessage theOscMessage)
+
+
+
Parameters:
theOscMessage - OscMessage
+
+
+
+ +

+getMessage

+
+public OscMessage getMessage(int theIndex)
+
+
request an osc message inside the osc bundle array, +

+

+
Parameters:
theIndex - int +
Returns:
OscMessage
+
+
+
+ +

+size

+
+public int size()
+
+
get the size of the osc bundle array which contains the osc messages. +

+

+ +
Returns:
int +
+Example
/**
+ * oscP5bundle by andreas schlegel
+ * an osc broadcast server.
+ * example shows how to create and send osc bundles. 
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create an osc bundle */
+  OscBundle myBundle = new OscBundle();
+  
+  /* createa new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  myMessage.add("abc");
+  
+  /* add an osc message to the osc bundle */
+  myBundle.add(myMessage);
+  
+  /* reset and clear the myMessage object for refill. */
+  myMessage.clear();
+  
+  /* refill the osc message object again */
+  myMessage.setAddrPattern("/test2");
+  myMessage.add("defg");
+  myBundle.add(myMessage);
+  
+  myBundle.setTimetag(myBundle.now() + 10000);
+  /* send the osc bundle, containing 2 osc messages, to a remote location. */
+  oscP5.send(myBundle, myRemoteLocation);
+}
+
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  print(" typetag: "+theOscMessage.typetag());
+  println(" timetag: "+theOscMessage.timetag());
+}
+
+
+
+
+ +

+setTimetag

+
+public void setTimetag(long theTime)
+
+
set the timetag of an osc bundle. timetags are used to synchronize events and + execute events at a given time in the future or immediately. timetags can + only be set for osc bundles, not for osc messages. oscP5 supports receiving + timetags, but does not queue messages for execution at a set time. +

+

+
Parameters:
theTime - long +
+Example
/**
+ * oscP5bundle by andreas schlegel
+ * an osc broadcast server.
+ * example shows how to create and send osc bundles. 
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create an osc bundle */
+  OscBundle myBundle = new OscBundle();
+  
+  /* createa new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  myMessage.add("abc");
+  
+  /* add an osc message to the osc bundle */
+  myBundle.add(myMessage);
+  
+  /* reset and clear the myMessage object for refill. */
+  myMessage.clear();
+  
+  /* refill the osc message object again */
+  myMessage.setAddrPattern("/test2");
+  myMessage.add("defg");
+  myBundle.add(myMessage);
+  
+  myBundle.setTimetag(myBundle.now() + 10000);
+  /* send the osc bundle, containing 2 osc messages, to a remote location. */
+  oscP5.send(myBundle, myRemoteLocation);
+}
+
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  print(" typetag: "+theOscMessage.typetag());
+  println(" timetag: "+theOscMessage.timetag());
+}
+
+
+
+
+ +

+now

+
+public static long now()
+
+
returns the current time in milliseconds. use with setTimetag. +

+

+ +
Returns:
long
+
+
+
+ +

+timetag

+
+public byte[] timetag()
+
+
returns a timetag as byte array. +

+

+ +
Returns:
byte[]
+
+
+
+ +

+getBytes

+
+public byte[] getBytes()
+
+
+
Specified by:
getBytes in class OscPacket
+
+
+ +
Returns:
byte[]
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscEventListener.html b/libraries/oscP5/reference/oscP5/OscEventListener.html new file mode 100644 index 0000000..dac1c19 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscEventListener.html @@ -0,0 +1,223 @@ + + + + + + +OscEventListener (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Interface OscEventListener

+
+
+
public interface OscEventListener
+ + +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidoscEvent(OscMessage theMessage) + +
+           
+ voidoscStatus(OscStatus theStatus) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+oscEvent

+
+void oscEvent(OscMessage theMessage)
+
+
+
+
+
+
+ +

+oscStatus

+
+void oscStatus(OscStatus theStatus)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscIn.html b/libraries/oscP5/reference/oscP5/OscIn.html new file mode 100644 index 0000000..4a3eafb --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscIn.html @@ -0,0 +1,434 @@ + + + + + + +OscIn (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscIn

+
+java.lang.Object
+  extended by oscP5.OscPatcher
+      extended by oscP5.OscPacket
+          extended by oscP5.OscMessage
+              extended by oscP5.OscIn
+
+
+Deprecated. +

+

+
@Deprecated
+public class OscIn
extends OscMessage
+ + +

+OscIn is deprecated. for compatibility with previous versions of oscP5 OscIn + is still available. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
OscIn(OscMessage theOscMessage) + +
+          Deprecated.  
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ byte[]getBlob(int thePos) + +
+          Deprecated.  
+ booleangetBoolean(int thePos) + +
+          Deprecated.  
+ chargetChar(int thePos) + +
+          Deprecated.  
+ ArrayListgetDataList() + +
+          Deprecated. this is only for christian's and jens' table communication with vvvv.
+ floatgetFloat(int thePos) + +
+          Deprecated.  
+ intgetInt(int thePos) + +
+          Deprecated.  
+ int[]getMidi(int thePos) + +
+          Deprecated.  
+ int[]getMidiBytes(int thePos) + +
+          Deprecated.  
+ StringgetString(int thePos) + +
+          Deprecated.  
+ + + + + + + +
Methods inherited from class oscP5.OscMessage
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addArguments, addrInt, addrPattern, arguments, checkAddrPattern, checkTypetag, clear, clearArguments, get, getAddrPatternAsBytes, getBytes, getTypetagAsBytes, isPlugged, makeBlob, print, printData, set, setAddrPattern, setAddrPattern, setArguments, timetag, toString, typetag
+ + + + + + + +
Methods inherited from class oscP5.OscPacket
address, netaddress, netAddress, port, tcpConnection
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OscIn

+
+public OscIn(OscMessage theOscMessage)
+
+
Deprecated. 
+ + + + + + + + +
+Method Detail
+ +

+getInt

+
+public int getInt(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getChar

+
+public char getChar(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getFloat

+
+public float getFloat(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getString

+
+public String getString(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getBlob

+
+public byte[] getBlob(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getMidiBytes

+
+public int[] getMidiBytes(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getMidi

+
+public int[] getMidi(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getBoolean

+
+public boolean getBoolean(int thePos)
+
+
Deprecated. 
+
+
+
+
+ +

+getDataList

+
+public ArrayList getDataList()
+
+
Deprecated. 
this is only for christian's and jens' table communication with vvvv. +

+

+ +
Returns:
ArrayList
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscMessage.html b/libraries/oscP5/reference/oscP5/OscMessage.html new file mode 100644 index 0000000..3bb21cb --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscMessage.html @@ -0,0 +1,1447 @@ + + + + + + +OscMessage (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscMessage

+
+java.lang.Object
+  extended by oscP5.OscPatcher
+      extended by oscP5.OscPacket
+          extended by oscP5.OscMessage
+
+
+
Direct Known Subclasses:
OscIn
+
+
+
+
public class OscMessage
extends OscPacket
+ + +

+An OSC message consists of an OSC Address Pattern, an OSC Type Tag String + and the OSC arguments. +

+ +

+

+ +
+Example
/**
+ * oscP5sendreceive by andreas schlegel
+ * example shows how to send and receive osc messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+ 
+import oscP5.*;
+import netP5.*;
+  
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+void mousePressed() {
+  /* in the following different ways of creating osc messages are shown by example */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  println(" typetag: "+theOscMessage.typetag());
+}
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
OscMessage(int theAddrInt) + +
+           
OscMessage(int theAddrPattern, + Object[] theArguments) + +
+           
OscMessage(OscMessage theOscMessage) + +
+           
OscMessage(String theAddrPattern) + +
+           
OscMessage(String theAddrPattern, + Object[] theArguments) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ OscMessageadd() + +
+          add values to an osc message.
+ OscMessageadd(boolean theValue) + +
+           
+ OscMessageadd(Boolean theValue) + +
+           
+ OscMessageadd(byte[] theArray) + +
+           
+ OscMessageadd(char theValue) + +
+           
+ OscMessageadd(char[] theArray) + +
+           
+ OscMessageadd(Character theValue) + +
+           
+ OscMessageadd(double theValue) + +
+           
+ OscMessageadd(Double theValue) + +
+           
+ OscMessageadd(float theValue) + +
+           
+ OscMessageadd(Float theValue) + +
+           
+ OscMessageadd(float[] theArray) + +
+           
+ OscMessageadd(int theValue) + +
+           
+ OscMessageadd(int[] theArray) + +
+           
+ OscMessageadd(Integer theValue) + +
+           
+ OscMessageadd(int channel, + int status, + int value1, + int value2) + +
+           
+ OscMessageadd(Object[] theArray) + +
+           
+ OscMessageadd(String theValue) + +
+           
+ OscMessageadd(String[] theArray) + +
+           
+ OscMessageaddArguments(Object[] theArguments) + +
+          add a list of arguments to an exisiting set of arguments.
+ intaddrInt() + +
+          returns the address pattern of the osc message as int.
+ StringaddrPattern() + +
+           
+ Object[]arguments() + +
+           
+ booleancheckAddrPattern(String theAddrPattern) + +
+          check if an address pattern equals a specific address pattern + you are looking for.
+ booleancheckTypetag(String theTypeTag) + +
+           
+ voidclear() + +
+          clear and reset an OscMessage for reuse.
+ voidclearArguments() + +
+          clears the arguments in a message, + but keeps the address the address pattern.
+ OscArgumentget(int theIndex) + +
+          get a value at a specific position in the osc message.
+ byte[]getAddrPatternAsBytes() + +
+           
+ byte[]getBytes() + +
+           
+ byte[]getTypetagAsBytes() + +
+           
+ booleanisPlugged() + +
+           
+static byte[]makeBlob(byte[] b) + +
+           
+ voidprint() + +
+           
+ voidprintData() + +
+           
+ voidset(int theIndex, + Object theObject) + +
+          TODO + set should enable the programmer to set values + of an existing osc message.
+ voidsetAddrPattern(int theAddrPattern) + +
+           
+ voidsetAddrPattern(String theAddrPattern) + +
+          set the address pattern of an osc message.
+ voidsetArguments(Object[] theArguments) + +
+          set the arguments of the osc message using an object array.
+ longtimetag() + +
+          get the timetag of an osc message.
+ StringtoString() + +
+           
+ Stringtypetag() + +
+          returns the typetag of the osc message.
+ + + + + + + +
Methods inherited from class oscP5.OscPacket
address, netaddress, netAddress, port, tcpConnection
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OscMessage

+
+public OscMessage(OscMessage theOscMessage)
+
+
+
Parameters:
theOscMessage - OscMessage
+
+
+ +

+OscMessage

+
+public OscMessage(String theAddrPattern)
+
+
+
Parameters:
theAddrPattern - String
+
+
+ +

+OscMessage

+
+public OscMessage(int theAddrInt)
+
+
+
Parameters:
theAddrInt - int
+
+
+ +

+OscMessage

+
+public OscMessage(String theAddrPattern,
+                  Object[] theArguments)
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
+
+
+ +

+OscMessage

+
+public OscMessage(int theAddrPattern,
+                  Object[] theArguments)
+
+
+
Parameters:
theAddrPattern - int
theArguments - Object[]
+
+ + + + + + + + +
+Method Detail
+ +

+clear

+
+public void clear()
+
+
clear and reset an OscMessage for reuse. +

+

+
+
+
+
+ +

+clearArguments

+
+public void clearArguments()
+
+
clears the arguments in a message, + but keeps the address the address pattern. +

+

+
+
+
+
+ +

+set

+
+public void set(int theIndex,
+                Object theObject)
+
+
TODO + set should enable the programmer to set values + of an existing osc message. +

+

+
+
+
+
+ +

+checkTypetag

+
+public boolean checkTypetag(String theTypeTag)
+
+
+
Parameters:
theTypeTag - String +
Returns:
boolean +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+checkAddrPattern

+
+public boolean checkAddrPattern(String theAddrPattern)
+
+
check if an address pattern equals a specific address pattern + you are looking for. this is usually used when parsing an osc message. + e.g. if(theOscMessage.checkAddrPattern("/test")==true) {...} +

+

+
Parameters:
theAddrPattern - String +
Returns:
boolean +
+Example
/**
+ * oscP5parsing by andreas schlegel
+ * example shows how to parse incoming osc messages "by hand".
+ * it is recommended to take a look at oscP5plug for an
+ * alternative and more convenient way to parse messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+void draw() {
+  background(0);  
+}
+
+
+void mousePressed() {
+  /* create a new osc message object */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+void oscEvent(OscMessage theOscMessage) {
+  /* check if theOscMessage has the address pattern we are looking for. */
+  
+  if(theOscMessage.checkAddrPattern("/test")==true) {
+    /* check if the typetag is the right one. */
+    if(theOscMessage.checkTypetag("ifs")) {
+      /* parse theOscMessage and extract the values from the osc message arguments. */
+      int firstValue = theOscMessage.get(0).intValue();  
+      float secondValue = theOscMessage.get(1).floatValue();
+      String thirdValue = theOscMessage.get(2).stringValue();
+      print("### received an osc message /test with typetag ifs.");
+      println(" values: "+firstValue+", "+secondValue+", "+thirdValue);
+      return;
+    }  
+  } 
+  println("### received an osc message. with address pattern "+theOscMessage.addrPattern());
+}
+
+
+
+
+ +

+setAddrPattern

+
+public void setAddrPattern(String theAddrPattern)
+
+
set the address pattern of an osc message. you can set + a string or an int as address pattern.tnt might be useful for + supercollider users. oscP5 does support ints and strings as + address patterns when sending and receiving messages. +

+

+
Parameters:
theAddrPattern - String
+
+
+
+ +

+setAddrPattern

+
+public void setAddrPattern(int theAddrPattern)
+
+
+
Parameters:
theAddrPattern - int
+
+
+
+ +

+setArguments

+
+public void setArguments(Object[] theArguments)
+
+
set the arguments of the osc message using an object array. + with version 0.9.4 the existing arguments are overwritten, + to add the arguments to the argument list, use addArguments(Object[]) +

+

+
Parameters:
theArguments - Object[]
+
+
+
+ +

+addArguments

+
+public OscMessage addArguments(Object[] theArguments)
+
+
add a list of arguments to an exisiting set of arguments. + to overwrite the existing argument list, use setArguments(Object[]) +

+

+
Parameters:
theArguments -
+
+
+
+ +

+addrPattern

+
+public String addrPattern()
+
+
+
+
+
+
+ +

+addrInt

+
+public int addrInt()
+
+
returns the address pattern of the osc message as int. +

+

+ +
Returns:
int
+
+
+
+ +

+typetag

+
+public String typetag()
+
+
returns the typetag of the osc message. e.g. the message contains + 3 floats then the typetag would be "fff" +

+

+ +
Returns:
String
+
+
+
+ +

+timetag

+
+public long timetag()
+
+
get the timetag of an osc message. timetags are only sent by + osc bundles. +

+

+ +
Returns:
long
+
+
+
+ +

+arguments

+
+public Object[] arguments()
+
+
+ +
Returns:
Object[]
+
+
+
+ +

+getAddrPatternAsBytes

+
+public byte[] getAddrPatternAsBytes()
+
+
+ +
Returns:
byte[]
+
+
+
+ +

+getTypetagAsBytes

+
+public byte[] getTypetagAsBytes()
+
+
+ +
Returns:
byte[]
+
+
+
+ +

+getBytes

+
+public byte[] getBytes()
+
+
+
Specified by:
getBytes in class OscPacket
+
+
+ +
Returns:
byte[]
+
+
+
+ +

+add

+
+public OscMessage add()
+
+
add values to an osc message. please check the + add documentation for specific information. +

+

+ +
+Example
/**
+ * oscP5message by andreas schlegel
+ * example shows how to create osc messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+ 
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+void mousePressed() {
+  /* in the following different ways of creating osc messages are shown by example */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(12.34); /* add a float to the osc message */
+  myMessage.add("some text"); /* add a string to the osc message */
+  myMessage.add(new byte[] {0x00, 0x01, 0x10, 0x20}); /* add a byte blob to the osc message */
+  myMessage.add(new int[] {1,2,3,4}); /* add an int array to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  println(" typetag: "+theOscMessage.typetag());
+}
+
+
+
+
+ +

+add

+
+public OscMessage add(int theValue)
+
+
+
Parameters:
theValue - int
+
+
+
+ +

+add

+
+public OscMessage add(String theValue)
+
+
+
Parameters:
theValue - String
+
+
+
+ +

+add

+
+public OscMessage add(float theValue)
+
+
+
Parameters:
theValue - float
+
+
+
+ +

+add

+
+public OscMessage add(double theValue)
+
+
+
Parameters:
theValue - double
+
+
+
+ +

+add

+
+public OscMessage add(boolean theValue)
+
+
+
Parameters:
theValue - boolean
+
+
+
+ +

+add

+
+public OscMessage add(Boolean theValue)
+
+
+
Parameters:
theValue - Boolean
+
+
+
+ +

+add

+
+public OscMessage add(Integer theValue)
+
+
+
Parameters:
theValue - Integer
+
+
+
+ +

+add

+
+public OscMessage add(Float theValue)
+
+
+
Parameters:
theValue - Float
+
+
+
+ +

+add

+
+public OscMessage add(Double theValue)
+
+
+
Parameters:
theValue - Double
+
+
+
+ +

+add

+
+public OscMessage add(Character theValue)
+
+
+
Parameters:
theValue - Character
+
+
+
+ +

+add

+
+public OscMessage add(char theValue)
+
+
+
Parameters:
theValue - char
+
+
+
+ +

+add

+
+public OscMessage add(int channel,
+                      int status,
+                      int value1,
+                      int value2)
+
+
+
Parameters:
channel - int
status - int
value1 - int
value2 - int
+
+
+
+ +

+add

+
+public OscMessage add(int[] theArray)
+
+
+
Parameters:
theArray - int[]
+
+
+
+ +

+add

+
+public OscMessage add(char[] theArray)
+
+
+
Parameters:
theArray - char[]
+
+
+
+ +

+add

+
+public OscMessage add(float[] theArray)
+
+
+
Parameters:
theArray - float[]
+
+
+
+ +

+add

+
+public OscMessage add(String[] theArray)
+
+
+
Parameters:
theArray - String[]
+
+
+
+ +

+add

+
+public OscMessage add(byte[] theArray)
+
+
+
Parameters:
theArray - byte[]
+
+
+
+ +

+add

+
+public OscMessage add(Object[] theArray)
+
+
+
Parameters:
theArray - Object[]
+
+
+
+ +

+makeBlob

+
+public static byte[] makeBlob(byte[] b)
+
+
+
Parameters:
b - byte[] +
Returns:
byte[]
+
+
+
+ +

+get

+
+public OscArgument get(int theIndex)
+
+
get a value at a specific position in the osc message. the get method + returns an OscArgument from which the value can be parsed into the right + format. e.g. to parse an int from the first argument in the osc message, + use theOscMessage.get(0).intValue(); +

+

+
Parameters:
theIndex - int +
Returns:
OscArgument
+
+
+
+ +

+toString

+
+public final String toString()
+
+
+
Overrides:
toString in class Object
+
+
+ +
Returns:
String
+
+
+
+ +

+isPlugged

+
+public boolean isPlugged()
+
+
+
+
+
+
+ +

+print

+
+public void print()
+
+
+
+
+
+
+ +

+printData

+
+public void printData()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscNetManager.html b/libraries/oscP5/reference/oscP5/OscNetManager.html new file mode 100644 index 0000000..1dd93e1 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscNetManager.html @@ -0,0 +1,760 @@ + + + + + + +OscNetManager (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscNetManager

+
+java.lang.Object
+  extended by oscP5.OscNetManager
+
+
+
All Implemented Interfaces:
TcpPacketListener, UdpPacketListener
+
+
+
+
public class OscNetManager
extends Object
implements UdpPacketListener, TcpPacketListener
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+static intNONE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
OscNetManager() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddTcpListener(TcpPacketListener theListener) + +
+           
+ voidaddUdpListener(UdpPacketListener theListener) + +
+           
+ voidprocess(DatagramPacket thePacket, + int thePort) + +
+           
+ voidprocess(TcpPacket thePacket, + int thePort) + +
+           
+ voidremove(AbstractTcpClient theClient) + +
+           
+ voidremoveTcpListener(TcpPacketListener theListener) + +
+           
+ voidremoveUdpListener(UdpPacketListener theListener) + +
+           
+ voidsend(DatagramPacket thePacket) + +
+           
+ voidsend(OscPacket thePacket) + +
+           
+ voidsend(OscPacket thePacket, + NetAddress theHost) + +
+           
+ voidsend(OscPacket thePacket, + NetAddressList theList) + +
+           
+ voidsend(OscPacket thePacket, + String theAddress, + int thePort) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + NetAddress theHost) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + NetAddressList theList) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + String theAddress, + int thePort) + +
+           
+ voidsetTimeToLive(int theTTL) + +
+           
+ voidstart(OscProperties theOscProperties) + +
+           
+ voidstatus(int theIndex) + +
+           
+ TcpClienttcpClient() + +
+           
+ TcpServertcpServer() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NONE

+
+public static final int NONE
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+OscNetManager

+
+public OscNetManager()
+
+
+ + + + + + + + +
+Method Detail
+ +

+start

+
+public void start(OscProperties theOscProperties)
+
+
+
+
+
+
+
+
+
+ +

+setTimeToLive

+
+public void setTimeToLive(int theTTL)
+
+
+
+
+
+
+
+
+
+ +

+tcpServer

+
+public TcpServer tcpServer()
+
+
+
+
+
+
+
+
+
+ +

+tcpClient

+
+public TcpClient tcpClient()
+
+
+
+
+
+
+
+
+
+ +

+addUdpListener

+
+public void addUdpListener(UdpPacketListener theListener)
+
+
+
+
+
+
Parameters:
theListener - DatagramPacketListener
+
+
+
+ +

+removeUdpListener

+
+public void removeUdpListener(UdpPacketListener theListener)
+
+
+
+
+
+
Parameters:
theListener - DatagramPacketListener
+
+
+
+ +

+addTcpListener

+
+public void addTcpListener(TcpPacketListener theListener)
+
+
+
+
+
+
Parameters:
theListener - TcpPacketListener
+
+
+
+ +

+removeTcpListener

+
+public void removeTcpListener(TcpPacketListener theListener)
+
+
+
+
+
+
Parameters:
theListener - TcpPacketListener
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket
+
+
+
+ +

+send

+
+public void send(DatagramPacket thePacket)
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 String theAddress,
+                 int thePort)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket
theAddress - String
thePort - int
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 NetAddressList theList)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket
theList - OscHostList
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 NetAddress theHost)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket
theHost - NetAddress
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 String theAddress,
+                 int thePort)
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 NetAddressList theList)
+
+
+
+
+
+
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 NetAddress theHost)
+
+
+
+
+
+
+
+
+
+ +

+process

+
+public void process(DatagramPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface UdpPacketListener
+
+
+
Parameters:
thePacket - DatagramPacket
+
+
+
+ +

+process

+
+public void process(TcpPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface TcpPacketListener
+
+
+
+
+
+
+ +

+remove

+
+public void remove(AbstractTcpClient theClient)
+
+
+
Specified by:
remove in interface TcpPacketListener
+
+
+
+
+
+
+ +

+status

+
+public void status(int theIndex)
+
+
+
Specified by:
status in interface TcpPacketListener
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscP5.html b/libraries/oscP5/reference/oscP5/OscP5.html new file mode 100644 index 0000000..7537ab0 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscP5.html @@ -0,0 +1,1807 @@ + + + + + + +OscP5 (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscP5

+
+java.lang.Object
+  extended by oscP5.OscP5
+
+
+
All Implemented Interfaces:
TcpPacketListener, UdpPacketListener
+
+
+
+
public class OscP5
extends Object
implements UdpPacketListener, TcpPacketListener
+ + +

+TODO add better error message handling for oscEvents, see this post + http://forum.processing.org/topic/oscp5-major-problems-with-error-handling# 25080000000811163 +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intMULTICAST + +
+          a static variable used when creating an oscP5 instance with a sepcified network protocol.
+static booleanOFF + +
+           
+static booleanON + +
+           
+static intTCP + +
+          a static variable used when creating an oscP5 instance with a sepcified network protocol.
+static intUDP + +
+          a static variable used when creating an oscP5 instance with a sepcified network protocol.
+static StringVERSION + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
OscP5(Object theParent, + int theReceiveAtPort) + +
+           
OscP5(Object theParent, + int theReceiveAtPort, + int theMode) + +
+           
OscP5(Object theParent, + OscProperties theProperties) + +
+           
OscP5(Object theParent, + String theAddress, + int thePort) + +
+          Deprecated.  
OscP5(Object theParent, + String theAddress, + int thePort, + int theMode) + +
+           
OscP5(Object theParent, + String theHost, + int theSendToPort, + int theReceiveAtPort, + String theMethodName) + +
+          Deprecated.  
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(OscEventListener theListener) + +
+           
+ voidconnect(NetAddress theNetAddress, + String theName, + String[] theArguments) + +
+           
+ voiddisconnect(NetAddress theHost) + +
+           
+ voiddisconnectFromTEMP() + +
+          Deprecated.  
+ voiddispose() + +
+           
+static voidflush(byte[] theBytes, + NetAddress theNetAddress) + +
+           
+static voidflush(byte[] theBytes, + String theAddress, + int thePort) + +
+          Deprecated.  
+static voidflush(OscMessage theOscMessage, + NetAddress theNetAddress) + +
+          a static method to send an OscMessage straight out of the box without having to instantiate + oscP5.
+static voidflush(OscMessage theOscMessage, + String theAddress, + int thePort) + +
+          Deprecated.  
+static voidflush(OscPacket theOscPacket, + NetAddress theNetAddress) + +
+           
+static voidflush(String theAddrPattern, + Object[] theArguments, + NetAddress theNetAddress) + +
+           
+ Stringip() + +
+           
+ booleanisBroadcast() + +
+           
+ Vector<OscEventListener>listeners() + +
+           
+ NetInfonetInfo() + +
+          netinfo() returns an instance of a NetInfo Object from which you can get LAN and WAN + information.
+ OscBundlenewBundle() + +
+          Deprecated.  
+ OscMessagenewMsg(String theAddrPattern) + +
+          Deprecated.  
+ voidplug(Object theObject, + String theMethodName, + String theAddrPattern) + +
+           
+ voidplug(Object theObject, + String theMethodName, + String theAddrPattern, + String theTypeTag) + +
+          osc messages can be automatically forwarded to a specific method of an object.
+ voidprocess(DatagramPacket thePacket, + int thePort) + +
+          incoming osc messages from an udp socket are parsed, processed and forwarded to the parent.
+ voidprocess(TcpPacket thePacket, + int thePort) + +
+           
+ OscPropertiesproperties() + +
+          returns the current properties of oscP5.
+ voidremove(AbstractTcpClient theTcpClient) + +
+           
+ voidremoveListener(OscEventListener theListener) + +
+           
+ voidsend(OscPacket thePacket) + +
+           
+ voidsend(OscPacket thePacket, + NetAddress theNetAddress) + +
+          you can send osc packets in many different ways.
+ voidsend(OscPacket thePacket, + NetAddressList theNetAddressList) + +
+           
+ voidsend(OscPacket thePacket, + String theIpAddress, + int thePort) + +
+          Deprecated.  
+ voidsend(OscPacket thePacket, + TcpClient theClient) + +
+          send to tcp client
+ voidsend(String theAddrPattern, + Object[] theArguments) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + NetAddress theNetAddress) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + NetAddressList theNetAddressList) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + String theAddress, + int thePort) + +
+           
+ voidsend(String theAddrPattern, + Object[] theArguments, + TcpClient theClient) + +
+           
+static voidsetLogStatus(int theValue) + +
+           
+static voidsetLogStatus(int theIndex, + int theValue) + +
+          oscP5 has a logging mechanism which prints out processes, warnings and errors into the + console window.
+ voidsetTimeToLive(int theTTL) + +
+          set timeToLive of a multicast packet.
+ voidstatus(int theIndex) + +
+           
+ voidstop() + +
+          stop oscP5 and close open Sockets.
+ TcpClienttcpClient() + +
+          return the instance of the running TCP client if in TCP mode.
+ TcpServertcpServer() + +
+          return the instance of the running TCP server if in TCP mode.
+ Stringversion() + +
+          get the current version of oscP5.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ON

+
+public static final boolean ON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+OFF

+
+public static final boolean OFF
+
+
+
See Also:
Constant Field Values
+
+
+ +

+UDP

+
+public static final int UDP
+
+
a static variable used when creating an oscP5 instance with a sepcified network protocol. +

+

+
See Also:
Constant Field Values
+
+
+ +

+MULTICAST

+
+public static final int MULTICAST
+
+
a static variable used when creating an oscP5 instance with a sepcified network protocol. +

+

+
See Also:
Constant Field Values
+
+
+ +

+TCP

+
+public static final int TCP
+
+
a static variable used when creating an oscP5 instance with a sepcified network protocol. +

+

+
See Also:
Constant Field Values
+
+
+ +

+VERSION

+
+public static final String VERSION
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+OscP5

+
+public OscP5(Object theParent,
+             OscProperties theProperties)
+
+
+
Parameters:
theParent - Object
theProperties - OscProperties
+
+
+ +

+OscP5

+
+public OscP5(Object theParent,
+             String theAddress,
+             int thePort,
+             int theMode)
+
+
+
Parameters:
theParent - Object
theAddress - String
thePort - int
theMode - int
+
+
+ +

+OscP5

+
+public OscP5(Object theParent,
+             int theReceiveAtPort,
+             int theMode)
+
+
+
+ +

+OscP5

+
+public OscP5(Object theParent,
+             int theReceiveAtPort)
+
+
+
Parameters:
theParent - Object
theReceiveAtPort - int
+
+
+ +

+OscP5

+
+public OscP5(Object theParent,
+             String theHost,
+             int theSendToPort,
+             int theReceiveAtPort,
+             String theMethodName)
+
+
Deprecated.  +

+

old version of constructor. still in here for backwards compatibility. +

+

+
+ +

+OscP5

+
+public OscP5(Object theParent,
+             String theAddress,
+             int thePort)
+
+
Deprecated.  +

+

+
Parameters:
theParent - Object
theAddress - String
thePort - int
+
+ + + + + + + + +
+Method Detail
+ +

+version

+
+public String version()
+
+
get the current version of oscP5. +

+

+
+
+
+ +
Returns:
String
+
+
+
+ +

+dispose

+
+public void dispose()
+
+
+
+
+
+
+
+
+
+ +

+addListener

+
+public void addListener(OscEventListener theListener)
+
+
+
+
+
+
+
+
+
+ +

+removeListener

+
+public void removeListener(OscEventListener theListener)
+
+
+
+
+
+
+
+
+
+ +

+listeners

+
+public Vector<OscEventListener> listeners()
+
+
+
+
+
+
+
+
+
+ +

+plug

+
+public void plug(Object theObject,
+                 String theMethodName,
+                 String theAddrPattern,
+                 String theTypeTag)
+
+
osc messages can be automatically forwarded to a specific method of an object. the plug + method can be used to by-pass parsing raw osc messages - this job is done for you with the + plug mechanism. you can also use the following array-types int[], float[], String[]. (but + only as on single parameter e.g. somemethod(int[] theArray) {} ). +

+

+
+
+
+
Parameters:
theObject - Object, can be any Object
theMethodName - String, the method name an osc message should be forwarded to
theAddrPattern - String, the address pattern of the osc message
theTypeTag - String +
+Example
/**
+ * oscP5plug by andreas schlegel
+ * example shows how to use the plug service with oscP5.
+ * the concept of the plug service is, that you can
+ * register methods in your sketch to which incoming 
+ * osc messages will be forwareded automatically without 
+ * having to parse them in the oscEvent method.
+ * that a look at the example below to get an understanding
+ * of how plug works.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+  
+  /* osc plug service
+   * osc messages with a specific address pattern can be automatically
+   * forwarded to a specific method of an object. in this example 
+   * a message with address pattern /test will be forwarded to a method
+   * test(). below the method test takes 2 arguments - 2 ints. therefore each
+   * message with address pattern /test and typetag ii will be forwarded to
+   * the method test(int theA, int theB)
+   */
+  oscP5.plug(this,"test","/test");
+}
+
+
+public void test(int theA, int theB) {
+  println("### plug event method. received a message /test.");
+  println(" 2 ints received: "+theA+", "+theB);  
+}
+
+
+void draw() {
+  background(0);
+}
+
+
+void mousePressed() {
+  /* createan osc message with address pattern /test */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(456); /* add a second int to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* with theOscMessage.isPlugged() you check if the osc message has already been
+   * forwarded to a plugged method. if theOscMessage.isPlugged()==true, it has already 
+   * been forwared to another method in your sketch. theOscMessage.isPlugged() can 
+   * be used for double posting but is not required.
+  */  
+  if(theOscMessage.isPlugged()==false) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  println("### received an osc message.");
+  println("### addrpattern\t"+theOscMessage.addrPattern());
+  println("### typetag\t"+theOscMessage.typetag());
+  }
+}
+
+
+
+
+ +

+plug

+
+public void plug(Object theObject,
+                 String theMethodName,
+                 String theAddrPattern)
+
+
+
+
+
+
Parameters:
theObject - Object, can be any Object
theMethodName - String, the method name an osc message should be forwarded to
theAddrPattern - String, the address pattern of the osc message +
+Example
/**
+ * oscP5plug by andreas schlegel
+ * example shows how to use the plug service with oscP5.
+ * the concept of the plug service is, that you can
+ * register methods in your sketch to which incoming 
+ * osc messages will be forwareded automatically without 
+ * having to parse them in the oscEvent method.
+ * that a look at the example below to get an understanding
+ * of how plug works.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+  
+  /* osc plug service
+   * osc messages with a specific address pattern can be automatically
+   * forwarded to a specific method of an object. in this example 
+   * a message with address pattern /test will be forwarded to a method
+   * test(). below the method test takes 2 arguments - 2 ints. therefore each
+   * message with address pattern /test and typetag ii will be forwarded to
+   * the method test(int theA, int theB)
+   */
+  oscP5.plug(this,"test","/test");
+}
+
+
+public void test(int theA, int theB) {
+  println("### plug event method. received a message /test.");
+  println(" 2 ints received: "+theA+", "+theB);  
+}
+
+
+void draw() {
+  background(0);
+}
+
+
+void mousePressed() {
+  /* createan osc message with address pattern /test */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+  myMessage.add(456); /* add a second int to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* with theOscMessage.isPlugged() you check if the osc message has already been
+   * forwarded to a plugged method. if theOscMessage.isPlugged()==true, it has already 
+   * been forwared to another method in your sketch. theOscMessage.isPlugged() can 
+   * be used for double posting but is not required.
+  */  
+  if(theOscMessage.isPlugged()==false) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  println("### received an osc message.");
+  println("### addrpattern\t"+theOscMessage.addrPattern());
+  println("### typetag\t"+theOscMessage.typetag());
+  }
+}
+
+
+
+
+ +

+process

+
+public void process(DatagramPacket thePacket,
+                    int thePort)
+
+
incoming osc messages from an udp socket are parsed, processed and forwarded to the parent. +

+

+
Specified by:
process in interface UdpPacketListener
+
+
+
Parameters:
thePacket - DatagramPacket
thePort - int
+
+
+
+ +

+process

+
+public void process(TcpPacket thePacket,
+                    int thePort)
+
+
+
Specified by:
process in interface TcpPacketListener
+
+
+
See Also:
TcpPacketListener.process(netP5.TcpPacket, int)
+
+
+
+ +

+remove

+
+public void remove(AbstractTcpClient theTcpClient)
+
+
+
Specified by:
remove in interface TcpPacketListener
+
+
+
Parameters:
theTcpClient - AbstractTcpClient
+
+
+
+ +

+status

+
+public void status(int theIndex)
+
+
+
Specified by:
status in interface TcpPacketListener
+
+
+
Parameters:
theIndex - int
+
+
+
+ +

+properties

+
+public OscProperties properties()
+
+
returns the current properties of oscP5. +

+

+
+
+
+ +
Returns:
OscProperties
+
+
+
+ +

+isBroadcast

+
+public boolean isBroadcast()
+
+
+
+
+
+ +
Returns:
boolean
+
+
+
+ +

+ip

+
+public String ip()
+
+
+
+
+
+ +
Returns:
String
+
+
+
+ +

+setLogStatus

+
+public static void setLogStatus(int theIndex,
+                                int theValue)
+
+
oscP5 has a logging mechanism which prints out processes, warnings and errors into the + console window. e.g. turn off the error log with setLogStatus(Logger.ERROR, Logger.OFF); +

+

+
+
+
+
Parameters:
theIndex - int
theValue - int
+
+
+
+ +

+setLogStatus

+
+public static void setLogStatus(int theValue)
+
+
+
+
+
+
Parameters:
theValue -
+
+
+
+ +

+setTimeToLive

+
+public void setTimeToLive(int theTTL)
+
+
set timeToLive of a multicast packet. +

+

+
+
+
+
Parameters:
theTTL - int
+
+
+
+ +

+disconnect

+
+public void disconnect(NetAddress theHost)
+
+
+
+
+
+
Parameters:
theHost - NetAddress
+
+
+
+ +

+connect

+
+public void connect(NetAddress theNetAddress,
+                    String theName,
+                    String[] theArguments)
+
+
+
+
+
+
Parameters:
theNetAddress - NetAddress
theName - String
theArguments - String[]
+
+
+
+ +

+netInfo

+
+public NetInfo netInfo()
+
+
netinfo() returns an instance of a NetInfo Object from which you can get LAN and WAN + information. +

+

+
+
+
+ +
Returns:
NetInfo
+
+
+
+ +

+tcpServer

+
+public TcpServer tcpServer()
+
+
return the instance of the running TCP server if in TCP mode. +

+

+
+
+
+ +
Returns:
TcpServer
+
+
+
+ +

+tcpClient

+
+public TcpClient tcpClient()
+
+
return the instance of the running TCP client if in TCP mode. +

+

+
+
+
+ +
Returns:
TcpClient
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 NetAddress theNetAddress)
+
+
you can send osc packets in many different ways. see below and use the send method that fits + your needs. +

+

+
+
+
+
Parameters:
thePacket - OscPacket
theNetAddress - NetAddress
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket +
+Example
/**
+ * oscP5sendreceive by andreas schlegel
+ * example shows how to send and receive osc messages.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+ 
+import oscP5.*;
+import netP5.*;
+  
+OscP5 oscP5;
+NetAddress myRemoteLocation;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* start oscP5, listening for incoming messages at port 12000 */
+  oscP5 = new OscP5(this,12000);
+  
+  /* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,
+   * an ip address and a port number. myRemoteLocation is used as parameter in
+   * oscP5.send() when sending osc packets to another computer, device, 
+   * application. usage see below. for testing purposes the listening port
+   * and the port of the remote location address are the same, hence you will
+   * send messages back to this sketch.
+   */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+void mousePressed() {
+  /* in the following different ways of creating osc messages are shown by example */
+  OscMessage myMessage = new OscMessage("/test");
+  
+  myMessage.add(123); /* add an int to the osc message */
+
+  /* send the message */
+  oscP5.send(myMessage, myRemoteLocation); 
+}
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  println(" typetag: "+theOscMessage.typetag());
+}
+
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 NetAddressList theNetAddressList)
+
+
+
+
+
+
Parameters:
thePacket - OscPacket
theNetAddressList - NetAddressList
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 NetAddressList theNetAddressList)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
theNetAddressList - NetAddressList
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 NetAddress theNetAddress)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
theNetAddress - NetAddress
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 String theAddress,
+                 int thePort)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
theNetAddress - NetAddress
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 TcpClient theClient)
+
+
send to tcp client +

+

+
+
+
+
Parameters:
thePacket - OscPacket
theClient - TcpClient
+
+
+
+ +

+send

+
+public void send(String theAddrPattern,
+                 Object[] theArguments,
+                 TcpClient theClient)
+
+
+
+
+
+
Parameters:
theAddrPattern - String
theArguments - Object[]
theClient - TcpClient
+
+
+
+ +

+send

+
+public void send(OscPacket thePacket,
+                 String theIpAddress,
+                 int thePort)
+
+
Deprecated.  +

+

the send method offers a lot of possibilities. have a look at the send documentation. +

+

+
+
+
+
Parameters:
thePacket - OscPacket
theIpAddress - String
thePort - int
+
+
+
+ +

+stop

+
+public void stop()
+
+
stop oscP5 and close open Sockets. +

+

+
+
+
+
+
+
+
+ +

+flush

+
+public static void flush(OscMessage theOscMessage,
+                         NetAddress theNetAddress)
+
+
a static method to send an OscMessage straight out of the box without having to instantiate + oscP5. +

+

+
+
+
+
Parameters:
theOscMessage - OscMessage
theNetAddress - NetAddress +
+Example
 /**
+ * oscP5flush by andreas schlegel
+ * example shows how to send osc messages without having to instantiate an oscP5 object.
+ * this can be useful if you are not listening for incoming messages and you
+ * want to avoid to have the additional oscP5 thread running listening for incoming 
+ * message (which you wont need if you are only sending messages).
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+ 
+import oscP5.*;
+import netP5.*;
+
+
+NetAddress myRemoteLocation;
+void setup() {
+  size(400,400);
+  frameRate(25);
+  /* set up a remote location */
+  myRemoteLocation = new NetAddress("127.0.0.1",12000);
+}
+
+
+void draw() {
+  background(0);
+}
+
+
+void mousePressed() {
+  /* create a new OscMessage with an address pattern, in this case /test. */
+  OscMessage myOscMessage = new OscMessage("/test");
+  
+  /* add a value (an integer) to the OscMessage */
+  myOscMessage.add(100);
+  
+  /* send the OscMessage to the remote location. 
+   */
+  OscP5.flush(myOscMessage,myRemoteLocation);
+}
+
+
+
+
+ +

+flush

+
+public static void flush(OscPacket theOscPacket,
+                         NetAddress theNetAddress)
+
+
+
+
+
+
+
+
+
+ +

+flush

+
+public static void flush(String theAddrPattern,
+                         Object[] theArguments,
+                         NetAddress theNetAddress)
+
+
+
+
+
+
+
+
+
+ +

+flush

+
+public static void flush(byte[] theBytes,
+                         NetAddress theNetAddress)
+
+
+
+
+
+
+
+
+
+ +

+flush

+
+public static void flush(byte[] theBytes,
+                         String theAddress,
+                         int thePort)
+
+
Deprecated.  +

+

+
+
+
+
Parameters:
theBytes - byte[]
theAddress - String
thePort - int
+
+
+
+ +

+flush

+
+public static void flush(OscMessage theOscMessage,
+                         String theAddress,
+                         int thePort)
+
+
Deprecated.  +

+

+
+
+
+
Parameters:
theOscMessage - OscMessage
theAddress - String
thePort - int
+
+
+
+ +

+newMsg

+
+public OscMessage newMsg(String theAddrPattern)
+
+
Deprecated.  +

+

+
+
+
+
Parameters:
theAddrPattern - String +
Returns:
OscMessage
+
+
+
+ +

+newBundle

+
+public OscBundle newBundle()
+
+
Deprecated.  +

+

+
+
+
+
Parameters:
theAddrPattern - String +
Returns:
OscMessage
+
+
+
+ +

+disconnectFromTEMP

+
+public void disconnectFromTEMP()
+
+
Deprecated.  +

+

used by the monome library by jklabs +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscPacket.html b/libraries/oscP5/reference/oscP5/OscPacket.html new file mode 100644 index 0000000..18709af --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscPacket.html @@ -0,0 +1,357 @@ + + + + + + +OscPacket (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscPacket

+
+java.lang.Object
+  extended by oscP5.OscPatcher
+      extended by oscP5.OscPacket
+
+
+
Direct Known Subclasses:
OscBundle, OscMessage
+
+
+
+
public abstract class OscPacket
extends OscPatcher
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
OscPacket() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringaddress() + +
+           
+abstract  byte[]getBytes() + +
+           
+ NetAddressnetaddress() + +
+          Deprecated.  
+ NetAddressnetAddress() + +
+           
+ intport() + +
+           
+ TcpClienttcpConnection() + +
+          when in TCP mode, tcpConnection() returns the instance of the TcpClient that has sent the OscMessage.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OscPacket

+
+public OscPacket()
+
+
+ + + + + + + + +
+Method Detail
+ +

+tcpConnection

+
+public TcpClient tcpConnection()
+
+
when in TCP mode, tcpConnection() returns the instance of the TcpClient that has sent the OscMessage. +

+

+ +
Returns:
TcpClient
+
+
+
+ +

+port

+
+public int port()
+
+
+
+
+
+
+ +

+netAddress

+
+public NetAddress netAddress()
+
+
+
+
+
+
+ +

+netaddress

+
+public NetAddress netaddress()
+
+
Deprecated.  +

+

+ +
Returns:
NetAddress
+
+
+
+ +

+address

+
+public String address()
+
+
+ +
Returns:
String
+
+
+
+ +

+getBytes

+
+public abstract byte[] getBytes()
+
+
+ +
Returns:
byte[]
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscPatcher.html b/libraries/oscP5/reference/oscP5/OscPatcher.html new file mode 100644 index 0000000..46ef6d8 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscPatcher.html @@ -0,0 +1,192 @@ + + + + + + +OscPatcher (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscPatcher

+
+java.lang.Object
+  extended by oscP5.OscPatcher
+
+
+
Direct Known Subclasses:
OscPacket
+
+
+
+
public abstract class OscPatcher
extends Object
+ + +

+


+ +

+ + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscPlug.html b/libraries/oscP5/reference/oscP5/OscPlug.html new file mode 100644 index 0000000..94827cb --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscPlug.html @@ -0,0 +1,393 @@ + + + + + + +OscPlug (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscPlug

+
+java.lang.Object
+  extended by oscP5.OscPlug
+
+
+
+
public class OscPlug
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+ Methodmethod + +
+           
+  + + + + + + + + + + +
+Constructor Summary
OscPlug() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancheckMethod(OscMessage theOscMessage, + boolean isArray) + +
+           
+ StringcheckType(String theName) + +
+           
+ MethodgetMethod() + +
+           
+ ObjectgetObject() + +
+           
+ voidplug(Object theObject, + String theMethodName, + String theAddrPattern) + +
+           
+ voidplug(Object theObject, + String theMethodName, + String theAddrPattern, + String theTypetag) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+method

+
+public Method method
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+OscPlug

+
+public OscPlug()
+
+
+ + + + + + + + +
+Method Detail
+ +

+plug

+
+public void plug(Object theObject,
+                 String theMethodName,
+                 String theAddrPattern)
+
+
+
+
+
+
+ +

+plug

+
+public void plug(Object theObject,
+                 String theMethodName,
+                 String theAddrPattern,
+                 String theTypetag)
+
+
+
+
+
+
+ +

+getObject

+
+public Object getObject()
+
+
+
+
+
+
+ +

+checkMethod

+
+public boolean checkMethod(OscMessage theOscMessage,
+                           boolean isArray)
+
+
+
+
+
+
+ +

+getMethod

+
+public Method getMethod()
+
+
+
+
+
+
+ +

+checkType

+
+public String checkType(String theName)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscProperties.html b/libraries/oscP5/reference/oscP5/OscProperties.html new file mode 100644 index 0000000..21dc5d3 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscProperties.html @@ -0,0 +1,799 @@ + + + + + + +OscProperties (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscProperties

+
+java.lang.Object
+  extended by oscP5.OscProperties
+
+
+
+
public class OscProperties
extends Object
+ + +

+osc properties are used to start oscP5 with more specific settings. + osc properties have to be passed to oscP5 in the constructor when + starting a new instance of oscP5. +

+ +

+

+ +
+Example
/**
+ * oscP5properities by andreas schlegel
+ * example shows how to use osc properties. 
+ * if you need more specific settings for your osc session,
+ * osc properties serves your needs.
+ * oscP5 website at http://www.sojamo.de/oscP5
+ */
+import oscP5.*;
+import netP5.*;
+
+OscP5 oscP5;
+
+void setup() {
+  size(400,400);
+  frameRate(25);
+
+  /* create a new osc properties object */
+  OscProperties properties = new OscProperties();
+  
+  /* set a default NetAddress. sending osc messages with no NetAddress parameter 
+   * in oscP5.send() will be sent to the default NetAddress.
+   */
+  properties.setRemoteAddress("127.0.0.1",12000);
+  
+  /* the port number you are listening for incoming osc packets. */
+  properties.setListeningPort(12000);
+  
+  
+  /* Send Receive Same Port is an option where the sending and receiving port are the same.
+   * this is sometimes necessary for example when sending osc packets to supercolider server.
+   * while both port numbers are the same, the receiver can simply send an osc packet back to
+   * the host and port the message came from.
+   */
+  properties.setSRSP(OscProperties.ON);
+  
+  /* set the datagram byte buffer size. this can be useful when you send/receive
+   * huge amounts of data, but keep in mind, that UDP is limited to 64k
+  */
+  properties.setDatagramSize(1024);
+  
+  /* initialize oscP5 with our osc properties */
+  oscP5 = new OscP5(this,properties);    
+  
+  /* print your osc properties */
+  println(properties.toString());
+}
+
+
+
+void mousePressed() {
+  /* create a new osc message with address pattern /test */
+  OscMessage myMessage = new  OscMessage("/test");
+  myMessage.add(200);
+  
+  /* send the osc message to the default netAddress, set in the OscProperties above.*/
+  oscP5.send(myMessage);
+}
+
+
+void draw() {
+  background(0);  
+}
+
+
+
+/* incoming osc message are forwarded to the oscEvent method. */
+void oscEvent(OscMessage theOscMessage) {
+  /* print the address pattern and the typetag of the received OscMessage */
+  print("### received an osc message.");
+  print(" addrpattern: "+theOscMessage.addrPattern());
+  println(" typetag: "+theOscMessage.typetag());
+}
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intMULTICAST + +
+           
+static booleanOFF + +
+           
+static booleanON + +
+           
+static intTCP + +
+           
+static intUDP + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
OscProperties() + +
+          create a new OscProperties Object.
OscProperties(OscEventListener theParent) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intdatagramSize() + +
+          returns the current size of the datagram bytebuffer.
+ StringeventMethod() + +
+           
+ Vector<OscEventListener>listeners() + +
+           
+ intlisteningPort() + +
+          returns the port number currently used to receive osc packets.
+ intnetworkProtocol() + +
+          returns the network protocol being used to transmit osc packets.
+ NetAddressremoteAddress() + +
+          returns a NetAddress of the remote host you are sending + osc packets to.
+ booleansendStatus() + +
+           
+ voidsetDatagramSize(int theSize) + +
+          set the size of the datagrampacket byte buffer.
+ voidsetEventMethod(String theEventMethod) + +
+          set the name of the default event method.
+ voidsetListeningPort(int thePort) + +
+          set port number you are listening for incoming osc packets.
+ voidsetNetworkProtocol(int theProtocol) + +
+          set the network protocol over which osc messages are transmitted.
+ voidsetRemoteAddress(NetAddress theNetAddress) + +
+          set the remote host address.
+ voidsetRemoteAddress(String theHostAddress, + int thePort) + +
+          set the remote host address.
+ voidsetSRSP(boolean theFlag) + +
+          SRSP stand for Send and Receive on Same Port.
+ booleansrsp() + +
+          you can send and receive at the same port while on a udp con
+ StringtoString() + +
+          prints out the current osc properties settings.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ON

+
+public static final boolean ON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+OFF

+
+public static final boolean OFF
+
+
+
See Also:
Constant Field Values
+
+
+ +

+UDP

+
+public static final int UDP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MULTICAST

+
+public static final int MULTICAST
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TCP

+
+public static final int TCP
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+OscProperties

+
+public OscProperties(OscEventListener theParent)
+
+
+
+ +

+OscProperties

+
+public OscProperties()
+
+
create a new OscProperties Object. +

+

+ + + + + + + + +
+Method Detail
+ +

+listeners

+
+public Vector<OscEventListener> listeners()
+
+
+ +
Returns:
OscEventListener
+
+
+
+ +

+sendStatus

+
+public boolean sendStatus()
+
+
+ +
Returns:
boolean
+
+
+
+ +

+setRemoteAddress

+
+public void setRemoteAddress(String theHostAddress,
+                             int thePort)
+
+
set the remote host address. set ip address and port of the host + message should be sent to. +

+

+
Parameters:
theHostAddress - String
thePort - int
+
+
+
+ +

+setRemoteAddress

+
+public void setRemoteAddress(NetAddress theNetAddress)
+
+
set the remote host address. set ip address and port of the host + message should be sent to. +

+

+
Parameters:
theNetAddress - NetAddress
+
+
+
+ +

+setListeningPort

+
+public void setListeningPort(int thePort)
+
+
set port number you are listening for incoming osc packets. +

+

+
Parameters:
thePort - int
+
+
+
+ +

+setDatagramSize

+
+public void setDatagramSize(int theSize)
+
+
set the size of the datagrampacket byte buffer. + the default size is 1536 bytes. +

+

+
Parameters:
theSize - int
+
+
+
+ +

+setEventMethod

+
+public void setEventMethod(String theEventMethod)
+
+
set the name of the default event method. + the event method is the method to which incoming osc messages + are forwarded. the default name for the event method is + "oscEvent" +

+

+
Parameters:
theEventMethod - String
+
+
+
+ +

+setNetworkProtocol

+
+public void setNetworkProtocol(int theProtocol)
+
+
set the network protocol over which osc messages are transmitted. + options are OscProperties.UDP and OscProperties.MULTICAST + the network protocol can only be set before initializing + oscP5. +

+

+
Parameters:
theProtocol - int
+
+
+
+ +

+setSRSP

+
+public void setSRSP(boolean theFlag)
+
+
SRSP stand for Send and Receive on Same Port. + by default osc packets are not received and sent by the same port. + if you need to send and receive on the same port call + setSRSP(OscProperties.ON) +

+

+
Parameters:
theFlag - boolean
+
+
+
+ +

+srsp

+
+public boolean srsp()
+
+
you can send and receive at the same port while on a udp con +

+

+ +
Returns:
boolean
+
+
+
+ +

+listeningPort

+
+public int listeningPort()
+
+
returns the port number currently used to receive osc packets. +

+

+ +
Returns:
int
+
+
+
+ +

+remoteAddress

+
+public NetAddress remoteAddress()
+
+
returns a NetAddress of the remote host you are sending + osc packets to. by default this is null. +

+

+ +
Returns:
NetAddress
+
+
+
+ +

+datagramSize

+
+public int datagramSize()
+
+
returns the current size of the datagram bytebuffer. +

+

+ +
Returns:
int
+
+
+
+ +

+eventMethod

+
+public String eventMethod()
+
+
+ +
Returns:
String
+
+
+
+ +

+networkProtocol

+
+public int networkProtocol()
+
+
returns the network protocol being used to transmit osc packets. returns an int. + 0 (UDP), 1 (MULTICAST), 2 (TCP) +

+

+ +
Returns:
int
+
+
+
+ +

+toString

+
+public String toString()
+
+
prints out the current osc properties settings. +

+

+
Overrides:
toString in class Object
+
+
+ +
Returns:
String
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/OscStatus.html b/libraries/oscP5/reference/oscP5/OscStatus.html new file mode 100644 index 0000000..d0a95b6 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/OscStatus.html @@ -0,0 +1,448 @@ + + + + + + +OscStatus (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +oscP5 +
+Class OscStatus

+
+java.lang.Object
+  extended by oscP5.OscStatus
+
+
+
+
public class OscStatus
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intCLIENT_CLOSED + +
+           
+static intCONNECTION_CLOSED + +
+           
+static intCONNECTION_FAILED + +
+           
+static intCONNECTION_REFUSED + +
+           
+static intCONNECTION_TERMINATED + +
+           
+static intDEFAULT + +
+           
+static intERROR + +
+           
+static intOSCP5_CLOSED + +
+           
+static intSEND_FAILED + +
+           
+static intSERVER_CLOSED + +
+           
+  + + + + + + + + + + +
+Constructor Summary
OscStatus(int theIndex) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ intid() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ERROR

+
+public static int ERROR
+
+
+
+
+
+ +

+DEFAULT

+
+public static int DEFAULT
+
+
+
+
+
+ +

+CONNECTION_CLOSED

+
+public static int CONNECTION_CLOSED
+
+
+
+
+
+ +

+CONNECTION_REFUSED

+
+public static int CONNECTION_REFUSED
+
+
+
+
+
+ +

+CONNECTION_TERMINATED

+
+public static int CONNECTION_TERMINATED
+
+
+
+
+
+ +

+CONNECTION_FAILED

+
+public static int CONNECTION_FAILED
+
+
+
+
+
+ +

+SERVER_CLOSED

+
+public static int SERVER_CLOSED
+
+
+
+
+
+ +

+CLIENT_CLOSED

+
+public static int CLIENT_CLOSED
+
+
+
+
+
+ +

+SEND_FAILED

+
+public static int SEND_FAILED
+
+
+
+
+
+ +

+OSCP5_CLOSED

+
+public static int OSCP5_CLOSED
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+OscStatus

+
+public OscStatus(int theIndex)
+
+
+ + + + + + + + +
+Method Detail
+ +

+id

+
+public int id()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/package-frame.html b/libraries/oscP5/reference/oscP5/package-frame.html new file mode 100644 index 0000000..60d3716 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/package-frame.html @@ -0,0 +1,63 @@ + + + + + + +oscP5 (Javadocs: oscP5) + + + + + + + + + + + +oscP5 + + + + +
+Interfaces  + +
+OscEventListener
+ + + + + + +
+Classes  + +
+OscArgument +
+OscBundle +
+OscIn +
+OscMessage +
+OscNetManager +
+OscP5 +
+OscPacket +
+OscPatcher +
+OscPlug +
+OscProperties +
+OscStatus
+ + + + diff --git a/libraries/oscP5/reference/oscP5/package-summary.html b/libraries/oscP5/reference/oscP5/package-summary.html new file mode 100644 index 0000000..38df1fd --- /dev/null +++ b/libraries/oscP5/reference/oscP5/package-summary.html @@ -0,0 +1,211 @@ + + + + + + +oscP5 (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package oscP5 +

+ + + + + + + + + +
+Interface Summary
OscEventListener 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
OscArgumentan osc argument contains one value of values from a received osc message.
OscBundleOsc Bundles are collections of Osc Messages.
OscInDeprecated.
OscMessageAn OSC message consists of an OSC Address Pattern, an OSC Type Tag String + and the OSC arguments.
OscNetManager 
OscP5TODO add better error message handling for oscEvents, see this post + http://forum.processing.org/topic/oscp5-major-problems-with-error-handling# 25080000000811163
OscPacket 
OscPatcher 
OscPlug 
OscPropertiesosc properties are used to start oscP5 with more specific settings.
OscStatus 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/oscP5/package-tree.html b/libraries/oscP5/reference/oscP5/package-tree.html new file mode 100644 index 0000000..dce25b1 --- /dev/null +++ b/libraries/oscP5/reference/oscP5/package-tree.html @@ -0,0 +1,164 @@ + + + + + + +oscP5 Class Hierarchy (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package oscP5 +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/overview-frame.html b/libraries/oscP5/reference/overview-frame.html new file mode 100644 index 0000000..73a8387 --- /dev/null +++ b/libraries/oscP5/reference/overview-frame.html @@ -0,0 +1,44 @@ + + + + + + +Overview List (Javadocs: oscP5) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+netP5 +
+oscP5 +
+

+ +

+  + + diff --git a/libraries/oscP5/reference/overview-summary.html b/libraries/oscP5/reference/overview-summary.html new file mode 100644 index 0000000..750deeb --- /dev/null +++ b/libraries/oscP5/reference/overview-summary.html @@ -0,0 +1,158 @@ + + + + + + +Overview (Javadocs: oscP5) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Javadocs: oscP5 +

+
+ + + + + + + + + + + + + +
+Packages
netP5 
oscP5 
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/overview-tree.html b/libraries/oscP5/reference/overview-tree.html new file mode 100644 index 0000000..629494a --- /dev/null +++ b/libraries/oscP5/reference/overview-tree.html @@ -0,0 +1,179 @@ + + + + + + +Class Hierarchy (Javadocs: oscP5) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
netP5, oscP5
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+processing library oscP5 by Andreas Schlegel. (c) 2004-2012 + + diff --git a/libraries/oscP5/reference/package-list b/libraries/oscP5/reference/package-list new file mode 100644 index 0000000..145784b --- /dev/null +++ b/libraries/oscP5/reference/package-list @@ -0,0 +1,2 @@ +netP5 +oscP5 diff --git a/libraries/oscP5/reference/resources/inherit.gif b/libraries/oscP5/reference/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/libraries/oscP5/reference/resources/inherit.gif differ diff --git a/libraries/oscP5/reference/stylesheet.css b/libraries/oscP5/reference/stylesheet.css new file mode 100644 index 0000000..54998c2 --- /dev/null +++ b/libraries/oscP5/reference/stylesheet.css @@ -0,0 +1,310 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +/* processingLibs style by andreas schlegel, sojamo */ + + +body { + margin : 0; + padding : 0; + padding-left : 10px; + padding-right : 8px; + background-color : #FFFFFF; + font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size : 100%; + font-size : 0.7em; + font-weight : normal; + line-height : normal; + margin-bottom:30px; +} + + + + +/* Headings */ +h1, h2, h3, h4, h5, th { + font-family :Arial, Helvetica, sans-serif; + font-size:1.2em; +} + + +p { + font-size : 1em; + width:80%; +} + +pre, code { + font-family : "Courier New", Courier, monospace; + font-size : 12px; + line-height : normal; +} + + + +table { + border:0; + margin-bottom:10px; + margin-top:10px; +} + + +tr, td { + border-top: 0px solid; + border-left: 0px solid; + padding-top:8px; + padding-bottom:8px; +} + + + +hr { + border:0; + height:1px; + padding:0; + margin:0; + margin-bottom:4px; + +} + + + +dd, th, td, font { + font-size:1.0em; + line-height:1.0em; +} + + + +dt { + margin-bottom:0px; +} + + + +dd { + margin-top:2px; + margin-bottom:4px; +} + + + +a { + text-decoration: underline; + font-weight: normal; +} + +a:hover, +a:active { + text-decoration: underline; + font-weight: normal; +} + +a:visited, +a:link:visited { + text-decoration: underline; + font-weight: normal; +} + + +img { + border: 0px solid #000000; +} + + + +/* Navigation bar fonts */ +.NavBarCell1 { + border:0; +} + +.NavBarCell1Rev { + border:0; +} + +.NavBarFont1 { + font-family: Arial, Helvetica, sans-serif; + font-size:1.1em; +} + + +.NavBarFont1 b { + font-weight:normal; +} + + + +.NavBarFont1:after, .NavBarFont1Rev:after { + font-weight:normal; + content: " \\"; +} + + +.NavBarFont1Rev { + font-family: Arial, Helvetica, sans-serif; + font-size:1.1em; +} + +.NavBarFont1Rev b { + font-family: Arial, Helvetica, sans-serif; + font-size:1.1em; + font-weight:normal; +} + +.NavBarCell2 { + font-family: Arial, Helvetica, sans-serif; +} + +.NavBarCell3 { + font-family: Arial, Helvetica, sans-serif; +} + + + +font.FrameItemFont { + font-family: Helvetica, Arial, sans-serif; + font-size:1.1em; + line-height:1.1em; +} + +font.FrameHeadingFont { + font-family: Helvetica, Arial, sans-serif; + line-height:32px; +} + +/* Font used in left-hand frame lists */ +.FrameTitleFont { + font-family: Helvetica, Arial, sans-serif +} + + +.toggleList { + padding:0; + margin:0; + margin-top:12px; +} + +.toggleList dt { + font-weight:bold; + font-size:12px; + font-family:arial,sans-serif; + padding:0px; + margin:10px 0px 10px 0px; +} + +.toggleList dt span { + font-family: monospace; + padding:0; + margin:0; +} + + +.toggleList dd { + margin:0; + padding:0; +} + +html.isjs .toggleList dd { + display: none; +} + +.toggleList pre { + padding: 4px 4px 4px 4px; +} + + + + + +/* COLORS */ + +pre, code { + color: #000000; +} + + +body { + color : #333333; + background-color :#FFFFFF; +} + + +h1, h2, h3, h4, h5, h6 { + color:#555; +} + +a, +.toggleList dt { + color: #1a7eb0; +} + +a:hover, +a:active { + color: #1a7eb0; +} + +a:visited, +a:link:visited { + color: #1a7eb0; +} + +td,tr { + border-color: #999999; +} + +hr { + color:#999999; + background:#999999; +} + + +.TableHeadingColor { + background: #dcdcdc; + color: #555; +} + + +.TableSubHeadingColor { + background: #EEEEFF +} + +.TableRowColor { + background: #FFFFFF +} + + +.NavBarCell1 { + background-color:#dcdcdc; + color:#000; +} + +.NavBarCell1 a { + color:#333; +} + + +.NavBarCell1Rev { + background-color:transparent; +} + +.NavBarFont1 { + color:#333; +} + + +.NavBarFont1Rev { + color:#fff; +} + +.NavBarCell2 { + background-color:#999; +} + +.NavBarCell2 a { + color:#fff; +} + + + +.NavBarCell3 { + background-color:#dcdcdc; +} + -- cgit v1.2.3-70-g09d2