Package com.ngrok.net
Class ConnectionSocket
- java.lang.Object
-
- java.net.Socket
-
- com.ngrok.net.ConnectionSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ConnectionSocket extends Socket
A socket for establishing a connection to a remote server.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectionSocket()
Creates a new connection socket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddress
getInetAddress()
Returns theInetAddress
of the remote endpoint of this socket.-
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
-
-
-
Constructor Detail
-
ConnectionSocket
protected ConnectionSocket() throws IOException
Creates a new connection socket.- Throws:
IOException
- if an I/O error occurs
-
-
Method Detail
-
getInetAddress
public InetAddress getInetAddress()
Returns theInetAddress
of the remote endpoint of this socket.- Overrides:
getInetAddress
in classSocket
- Returns:
- the
InetAddress
of the remote endpoint
-
-