gnu.inet.comsat
Class ComsatClient
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- The default comsat port.
- See Also:
- Constant Field Values
socket
protected java.net.DatagramSocket socket
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
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
read
public ComsatInfo read()
throws java.io.IOException
- Throws:
java.io.IOException