public class ConnectSocket extends Connection
Connection
port, server
Constructor and Description |
---|
ConnectSocket(java.lang.String server,
int port,
int maxSize)
Construct a new connection to a specified server and port.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
getCache, putCache, run, toString
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public ConnectSocket(java.lang.String server, int port, int maxSize) throws java.io.IOException
server
- The hostname of the serverport
- The port number on the servermaxSize
- The maximum size of the received replyjava.io.IOException
- if the connection cannot be made