public class OSCPortIn extends OSCPort implements java.lang.Runnable
defaultSCLangOSCPort, defaultSCOSCPort| Constructor and Description |
|---|
OSCPortIn(int port)
Create an OSCPort that listens on port
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.String anAddress,
OSCListener listener)
Register the listener for incoming OSCPackets addressed to an Address
|
void |
close()
Close the socket and free-up resources.
|
boolean |
isListening()
Am I listening for packets?
|
void |
run() |
void |
startListening()
Start listening for incoming OSCPackets
|
void |
stopListening()
Stop listening for incoming OSCPackets
|
public OSCPortIn(int port)
throws java.net.SocketException
port - java.net.SocketExceptionpublic void addListener(java.lang.String anAddress,
OSCListener listener)
anAddress - the address to listen forlistener - the object to invoke when a message comes inpublic void close()
public boolean isListening()
public void run()
run in interface java.lang.RunnableRunnable.run()public void startListening()
public void stopListening()