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