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 Socket
public java.io.InputStream getInputStream()
getInputStream
in interface Socket
InputStream
used to read data from the other end of the connection.public java.io.OutputStream getOutputStream()
getOutputStream
in interface Socket
OutputStream
used to write data to the other end of the connection.public java.lang.String getRemoteAddress()
getRemoteAddress
in interface Socket
public void dispose()
Disposable
dispose
in interface Disposable