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 Socket
public InputStream getInputStream()
getInputStream
in interface Socket
InputStream
used to read data from the other end of the connection.public OutputStream getOutputStream()
getOutputStream
in interface Socket
OutputStream
used to write data to the other end of the connection.public String getRemoteAddress()
getRemoteAddress
in interface Socket
public void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2014. All rights reserved.