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 int NONE
           
 
Constructor Summary
OscNetManager()
           
 
Method Summary
 void addTcpListener(TcpPacketListener theListener)
           
 void addUdpListener(UdpPacketListener theListener)
           
 void process(DatagramPacket thePacket, int thePort)
           
 void process(TcpPacket thePacket, int thePort)
           
 void remove(AbstractTcpClient theClient)
           
 void removeTcpListener(TcpPacketListener theListener)
           
 void removeUdpListener(UdpPacketListener theListener)
           
 void send(DatagramPacket thePacket)
           
 void send(OscPacket thePacket)
           
 void send(OscPacket thePacket, NetAddress theHost)
           
 void send(OscPacket thePacket, NetAddressList theList)
           
 void send(OscPacket thePacket, String theAddress, int thePort)
           
 void send(String theAddrPattern, Object[] theArguments)
           
 void send(String theAddrPattern, Object[] theArguments, NetAddress theHost)
           
 void send(String theAddrPattern, Object[] theArguments, NetAddressList theList)
           
 void send(String theAddrPattern, Object[] theArguments, String theAddress, int thePort)
           
 void setTimeToLive(int theTTL)
           
 void start(OscProperties theOscProperties)
           
 void status(int theIndex)
           
 TcpClient tcpClient()
           
 TcpServer tcpServer()
           
 
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