Package com.sun.rpc

Class ConnectSocket

  • All Implemented Interfaces:
    java.lang.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:
    Connection
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectSocket​(java.lang.String server, int port, int maxSize)
      Construct a new connection to a specified server and port.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConnectSocket

        public ConnectSocket​(java.lang.String server,
                             int port,
                             int maxSize)
                      throws java.io.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:
        java.io.IOException - if the connection cannot be made
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable