org.protocol
Class SimpleUDPConnection

java.lang.Object
  extended by org.protocol.SimpleUDPConnection
All Implemented Interfaces:
Connection

public class SimpleUDPConnection
extends java.lang.Object
implements Connection


Constructor Summary
protected SimpleUDPConnection()
           
  SimpleUDPConnection(java.net.InetSocketAddress address, int timeout, int buf_size)
           
 
Method Summary
static void alert(java.lang.Object message)
           
 java.net.InetSocketAddress getRemoteAddress()
           
static void main(java.lang.String[] args)
           
 java.lang.String receive()
           
 void send(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUDPConnection

protected SimpleUDPConnection()

SimpleUDPConnection

public SimpleUDPConnection(java.net.InetSocketAddress address,
                           int timeout,
                           int buf_size)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

send

public void send(java.lang.String message)
          throws java.lang.Exception
Specified by:
send in interface Connection
Throws:
java.lang.Exception

receive

public java.lang.String receive()
                         throws java.lang.Exception
Specified by:
receive in interface Connection
Throws:
java.lang.Exception

getRemoteAddress

public java.net.InetSocketAddress getRemoteAddress()
Specified by:
getRemoteAddress in interface Connection

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

alert

public static void alert(java.lang.Object message)