public class NetJavaSocketImpl extends java.lang.Object implements Socket
| Constructor and Description |
|---|
NetJavaSocketImpl(Net.Protocol protocol,
java.lang.String host,
int port,
SocketHints hints) |
NetJavaSocketImpl(java.net.Socket socket,
SocketHints hints) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases all resources of this object.
|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
java.lang.String |
getRemoteAddress() |
boolean |
isConnected() |
public NetJavaSocketImpl(Net.Protocol protocol, java.lang.String host, int port, SocketHints hints)
public NetJavaSocketImpl(java.net.Socket socket,
SocketHints hints)
public boolean isConnected()
isConnected in interface Socketpublic java.io.InputStream getInputStream()
getInputStream in interface SocketInputStream used to read data from the other end of the connection.public java.io.OutputStream getOutputStream()
getOutputStream in interface SocketOutputStream used to write data to the other end of the connection.public java.lang.String getRemoteAddress()
getRemoteAddress in interface Socketpublic void dispose()
Disposabledispose in interface Disposable