Located in compilation unit of sun.
| Modifier and Type | Field and Description |
|---|---|
| private BufferedInputStream | |
| private BufferedOutputStream | |
| private Socket |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract sun. Implements java. Closes this resource, relinquishing any underlying resources. |
| private static void | intToNetworkByteOrder(int num, byte[] buf, int start, int count)
Encodes an integer into 4 bytes in network byte order in the buffer supplied. |
| private static int | networkByteOrderToInt(byte[] buf, int start, int count)
Returns the integer represented by 4 bytes in network byte order. |
| private int | Returns: The number of bytes actually read; -1 if none readRead requested number of bytes before returning. |
| public byte[] | |
| public void |
| in | back to summary |
|---|---|
| private BufferedInputStream in | |
| out | back to summary |
|---|---|
| private BufferedOutputStream out | |
| tcpSocket | back to summary |
|---|---|
| private Socket tcpSocket | |
| TCPClient | back to summary |
|---|---|
| pack-priv TCPClient(String hostname, int port, int timeout) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract sun. Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| intToNetworkByteOrder | back to summary |
|---|---|
| private static void intToNetworkByteOrder(int num, byte[] buf, int start, int count) Encodes an integer into 4 bytes in network byte order in the buffer supplied. | |
| networkByteOrderToInt | back to summary |
|---|---|
| private static int networkByteOrderToInt(byte[] buf, int start, int count) Returns the integer represented by 4 bytes in network byte order. | |
| readFully | back to summary |
|---|---|
| private int readFully(byte[] inBuf, int total) throws IOException Read requested number of bytes before returning.
| |
| receive | back to summary |
|---|---|
| public byte[] receive() throws IOException Implements abstract sun.
| |
| send | back to summary |
|---|---|
| public void send(byte[] data) throws IOException Implements abstract sun.
| |