com.cycling74.net
Class UdpSender

java.lang.Object
  extended by com.cycling74.net.UdpSender

public class UdpSender
extends Object

Class wrapper to send atoms via UDP/IP. The host on the other side must use UdpReceive to read the sended atoms. This class is a work in progress and have been lightly tested.


Constructor Summary
UdpSender()
           
UdpSender(String address, int port)
          Create a UpdSender.
 
Method Summary
 String getAddress()
          Returns the hostname/ip address to reach.
 int getPort()
          Returns the UDP port to use.
 void send(Atom[] args)
           
 void send(float f)
           
 void send(int i)
           
 void send(String msg, Atom[] args)
           
 void setAddress(String address)
          Sets hostname/ip address to reach.
 void setPort(int port)
          Sets the UDP port to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpSender

public UdpSender()

UdpSender

public UdpSender(String address,
                 int port)
Create a UpdSender.

Parameters:
address - the hostname/ip address of the host to reach
port - the UDP port to use
Method Detail

send

public void send(Atom[] args)

send

public void send(int i)

send

public void send(float f)

send

public void send(String msg,
                 Atom[] args)

getAddress

public String getAddress()
Returns the hostname/ip address to reach.

Returns:
hostname/ip address to reach

setAddress

public void setAddress(String address)
Sets hostname/ip address to reach.

Parameters:
address - hostname/ip address to reach

getPort

public int getPort()
Returns the UDP port to use.

Returns:
the UDP port to use

setPort

public void setPort(int port)
Sets the UDP port to use.

Parameters:
port - the UDP port to use


This API is based on mxj for Max/MSP by Cycling74. Please see original MXJ implementation.