Method | Description | |
---|---|---|
ClearEndOfLine ( ) : void |
reads up to end of line and returns nothing
|
|
Close ( ) : void |
sets closed flag and checks in to connection sockIOPool but does not close connections
|
|
Flush ( ) : void |
flushes output stream
|
|
Read ( byte bytes ) : void |
reads length bytes into the passed in byte array from stream
|
|
ReadLine ( ) : string |
reads a line intentionally not using the deprecated readLine method from DataInputStream
|
|
SockIO ( |
creates a new SockIO object wrapping a socket connection to host:port, and its input and output streams
|
|
SockIO ( |
creates a new SockIO object wrapping a socket connection to host:port, and its input and output streams
|
|
ToString ( ) : string |
returns the string representation of this socket
|
|
TrueClose ( ) : void |
closes socket and all streams connected to it
|
|
Write ( byte bytes ) : void |
writes a byte array to the output stream
|
|
Write ( byte bytes, int offset, int count ) : void |
writes a byte array to the output stream
|
Method | Description | |
---|---|---|
GetSocket ( String host, int port, int timeout ) : Socket |
Method which spawns thread to get a connection and then enforces a timeout on the initial connection. This should be backed by a thread sockIOPool. Any volunteers?
|
Method | Description | |
---|---|---|
GetLocalizedString ( string key ) : string | ||
SockIO ( ) : System |
protected static GetSocket ( String host, int port, int timeout ) : Socket | ||
host | String | host to establish connection to |
port | int | port on that host |
timeout | int | connection timeout in ms |
return | Socket |
public SockIO ( |
||
pool | ||
host | String | hostname:port |
timeout | int | read timeout value for connected socket |
connectTimeout | int | timeout for initial connections |
noDelay | bool | TCP NODELAY option? |
return | System |
public SockIO ( |
||
pool | ||
host | String | host to connect to |
port | int | port to connect to |
timeout | int | int ms to block on data for read |
connectTimeout | int | timeout (in ms) for initial connection |
noDelay | bool | TCP NODELAY option? |
return | System |
public Write ( byte bytes, int offset, int count ) : void | ||
bytes | byte | byte array to write |
offset | int | offset to begin writing from |
count | int | count of bytes to write |
return | void |