com.sun.rpc
Class ConnectDatagram
public class ConnectDatagram
Sets up a UDP connection to the server.
Since UDP is really connectionless, we
don't really have a connection, so perhaps
describing this as an association
is more accurate.
This class lets us transmit and receive buffers
of data to a port on a remote server.
ConnectDatagram(String server, int port, int maxSize)- Construct a new connection to a specified server and port.
|
ConnectDatagram
public ConnectDatagram(String server,
int port,
int maxSize)
throws IOException Construct a new connection to a specified server and port.
server - The hostname of the serverport - The port number on the servermaxSize - The maximum size in bytes of the received message
finalize
protected void finalize()
throws Throwable