Package com.ngrok.net
Class ListenerSocketImpl
- java.lang.Object
-
- java.net.SocketImpl
-
- com.ngrok.net.AbstractSocketImpl
-
- com.ngrok.net.ListenerSocketImpl
-
- All Implemented Interfaces:
SocketOptions
public class ListenerSocketImpl extends AbstractSocketImpl
An implementation of theAbstractSocketImpl
interface for accepting connections on aListener
-
-
Field Summary
-
Fields inherited from class java.net.SocketImpl
address, fd, localport, port
-
Fields inherited from interface java.net.SocketOptions
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_REUSEPORT, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY
-
-
Constructor Summary
Constructors Constructor Description ListenerSocketImpl(Listener listener)
Creates a new listener socket implementation for the given listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
accept(SocketImpl s)
Accepts a listener connection to the socket.-
Methods inherited from class com.ngrok.net.AbstractSocketImpl
available, bind, close, connect, connect, connect, create, getInputStream, getOption, getOutputStream, listen, sendUrgentData, setOption
-
Methods inherited from class java.net.SocketImpl
getFileDescriptor, getInetAddress, getLocalPort, getOption, getPort, setOption, setPerformancePreferences, shutdownInput, shutdownOutput, supportedOptions, supportsUrgentData, toString
-
-
-
-
Constructor Detail
-
ListenerSocketImpl
public ListenerSocketImpl(Listener listener)
Creates a new listener socket implementation for the given listener.- Parameters:
listener
- the listener
-
-
Method Detail
-
accept
protected void accept(SocketImpl s) throws IOException
Accepts a listener connection to the socket.- Overrides:
accept
in classAbstractSocketImpl
- Parameters:
s
- the socket to accept the connection on- Throws:
IOException
- if an I/O error occurs
-
-