com.sun.rpc

Class ConnectDatagram


public class ConnectDatagram
extends Connection

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.
Author:
Brent Callaghan
See Also:
Connection

Field Summary

Fields inherited from class com.sun.rpc.Connection

port, server

Constructor Summary

ConnectDatagram(String server, int port, int maxSize)
Construct a new connection to a specified server and port.

Method Summary

protected void
finalize()

Methods inherited from class com.sun.rpc.Connection

getCache, putCache, run, toString

Constructor Details

ConnectDatagram

public ConnectDatagram(String server,
                       int port,
                       int maxSize)
            throws IOException
Construct a new connection to a specified server and port.
Parameters:
server - The hostname of the server
port - The port number on the server
maxSize - The maximum size in bytes of the received message

Method Details

finalize

protected void finalize()
            throws Throwable