public class StreamSocket
extends java.lang.Object
| Constructor and Description |
|---|
StreamSocket(ProtocolInstance instance,
NetworkProxy proxy,
java.net.InetSocketAddress addr,
java.net.InetSocketAddress sourceAddr) |
StreamSocket(ProtocolInstance instance,
java.nio.channels.SocketChannel fd) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
connect(Buffer readBuffer,
Buffer writeBuffer) |
java.nio.channels.SocketChannel |
fd() |
protected void |
finalize() |
boolean |
isConnected() |
int |
read(Buffer buf) |
int |
read(java.nio.ByteBuffer buf) |
void |
setBufferSize(int rcvSize,
int sndSize) |
java.lang.String |
toString() |
int |
write(Buffer buf) |
int |
write(java.nio.ByteBuffer buf) |
public StreamSocket(ProtocolInstance instance, NetworkProxy proxy, java.net.InetSocketAddress addr, java.net.InetSocketAddress sourceAddr)
public StreamSocket(ProtocolInstance instance, java.nio.channels.SocketChannel fd)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setBufferSize(int rcvSize,
int sndSize)
public boolean isConnected()
public java.nio.channels.SocketChannel fd()
public int read(Buffer buf)
public int write(Buffer buf)
public int read(java.nio.ByteBuffer buf)
public int write(java.nio.ByteBuffer buf)
public void close()
public java.lang.String toString()
toString in class java.lang.Object