org.opennms.netmgt.provision.server
Class SimpleUDPServer
java.lang.Object
org.opennms.netmgt.provision.server.SimpleUDPServer
public class SimpleUDPServer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleUDPServer
public SimpleUDPServer()
onInit
public void onInit()
startServer
public void startServer()
throws Exception
- Throws:
Exception
stopServer
public void stopServer()
throws IOException
- Throws:
IOException
getRunnable
public Runnable getRunnable()
throws Exception
- Throws:
Exception
setPort
public void setPort(int port)
getPort
public int getPort()
setTimeout
public void setTimeout(int timeout)
getTimeout
public int getTimeout()
attemptConversation
protected boolean attemptConversation(DatagramSocket socket)
throws IOException
- Throws:
IOException
addRequestResponse
protected void addRequestResponse(DatagramPacket request,
byte[] response)
recievedPacket
protected SimpleUDPServer.RequestMatcher recievedPacket(DatagramPacket request)
setInetAddress
public void setInetAddress(InetAddress testInetAddress)
getInetAddress
public InetAddress getInetAddress()
Copyright © 2009. All Rights Reserved.