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
 void send(byte[] theBytes)
          send a byte array using UDP to an already specified RemoteAddress.
 void send(byte[] theBytes, InetAddress theAddress, int thePort)
          send a byte array to the dedicated remoteAddress.
 void send(byte[] theBytes, NetAddress theNetAddress)
          send a byte array to the dedicated remoteAddress.
 void send(byte[] theBytes, String theAddress, int thePort)
          send a byte array to the dedicated remoteAddress.
 void send(DatagramPacket thePacket)
           
 void send(String theString)
          send a string using UDP to an already specified RemoteAddress.
 DatagramSocket socket()
          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