|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netP5.AbstractUdpServer
public abstract class AbstractUdpServer
Constructor Summary | |
---|---|
AbstractUdpServer(UdpPacketListener theListener,
int thePort,
int theBufferSize)
create a new UdpServer |
Method Summary | |
---|---|
void |
dispose()
stop the UDP server, clean up and delete its reference. |
void |
run()
|
void |
send(byte[] theBytes)
send a byte array to a previously defined remoteAddress. |
void |
send(byte[] theBytes,
InetAddress theAddress,
int thePort)
send a byte array to a dedicated remoteAddress. |
void |
send(byte[] theBytes,
String theAddress,
int thePort)
send a byte array to a dedicated remoteAddress. |
void |
send(DatagramPacket thePacket)
|
DatagramSocket |
socket()
get the datagram socket of the UDP server. |
void |
start()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUdpServer(UdpPacketListener theListener, int thePort, int theBufferSize)
theListener
- UdpPacketListenerthePort
- inttheBufferSize
- intMethod Detail |
---|
public DatagramSocket socket()
public void start()
public void run()
run
in interface Runnable
public void dispose()
public void send(byte[] theBytes)
theBytes
- byte[]public void send(byte[] theBytes, String theAddress, int thePort)
thePacket
- OscPackettheAddress
- StringthePort
- intpublic void send(DatagramPacket thePacket)
thePacket
- DatagramPacketpublic void send(byte[] theBytes, InetAddress theAddress, int thePort)
theBytes
- byte[]theAddress
- InetAddressthePort
- int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |