Package com.sun.rpc

Class ConnectSocket

All Implemented Interfaces:
Runnable

public class ConnectSocket extends Connection
Sets up a TCP connection to the server. This class lets us transmit and receive buffers of data to a port on a remote server. It also handles reconnection of broken TCP links.
Author:
Brent Callaghan
See Also:
  • Constructor Details

    • ConnectSocket

      public ConnectSocket(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 of the received reply
      Throws:
      IOException - if the connection cannot be made
  • Method Details