gnu.inet.comsat
Class ComsatClient

java.lang.Object
  extended by gnu.inet.comsat.ComsatClient

public class ComsatClient
extends java.lang.Object

Simple comsat client.


Field Summary
static int DEFAULT_PORT
          The default comsat port.
protected  java.net.DatagramSocket socket
           
 
Constructor Summary
ComsatClient()
           
ComsatClient(int port, int timeout)
           
 
Method Summary
 void close()
           
 ComsatInfo read()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
The default comsat port.

See Also:
Constant Field Values

socket

protected java.net.DatagramSocket socket
Constructor Detail

ComsatClient

public ComsatClient()
             throws java.io.IOException
Throws:
java.io.IOException

ComsatClient

public ComsatClient(int port,
                    int timeout)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

read

public ComsatInfo read()
                throws java.io.IOException
Throws:
java.io.IOException