Modifier and Type | Field and Description |
---|---|
private org.apache.log4j.Logger |
log |
private InetAddress |
mcastAddr |
private int |
mcastPort |
private MulticastSocket |
mSocket |
private Vector |
mWorkQueue |
private boolean |
run |
private String |
zoneID |
Constructor and Description |
---|
UDPSender(int port,
InetAddress addr,
String zoneID) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
disconnect() |
Object |
get()
Get the first object out of the queue.
|
boolean |
isEmpty() |
Object |
peek()
Peek to see if something is available.
|
private void |
processEvent(byte[] bytes) |
void |
put(Object object) |
void |
run() |
private void |
sleep(int value) |
private org.apache.log4j.Logger log
private boolean run
private MulticastSocket mSocket
private int mcastPort
private InetAddress mcastAddr
private String zoneID
private Vector mWorkQueue
UDPSender(int port, InetAddress addr, String zoneID)
public boolean isEmpty()
public void put(Object object)
public Object get()
public Object peek()
private void sleep(int value)
public void clear()
private void processEvent(byte[] bytes)
public void disconnect()
Copyright © 2013–2014. All rights reserved.