Package com.sun.rpc
Class ConnectSocket
java.lang.Object
java.lang.Thread
com.sun.rpc.Connection
com.sun.rpc.ConnectSocket
- All Implemented Interfaces:
Runnable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class com.sun.rpc.Connection
port, server
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionConnectSocket
(String server, int port, int maxSize) Construct a new connection to a specified server and port. -
Method Summary
Methods inherited from class com.sun.rpc.Connection
getCache, putCache, run, toString
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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Constructor Details
-
ConnectSocket
Construct a new connection to a specified server and port.- Parameters:
server
- The hostname of the serverport
- The port number on the servermaxSize
- The maximum size of the received reply- Throws:
IOException
- if the connection cannot be made
-
-
Method Details