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 protectedConnectionSocket()Creates a new connection socket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressgetInetAddress()Returns theInetAddressof 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 IOExceptionCreates a new connection socket.- Throws:
IOException- if an I/O error occurs
-
-
Method Detail
-
getInetAddress
public InetAddress getInetAddress()
Returns theInetAddressof the remote endpoint of this socket.- Overrides:
getInetAddressin classSocket- Returns:
- the
InetAddressof the remote endpoint
-
-