public class SocketChannelConnectionAcceptor extends Object implements PeerConnectionAcceptor
Constructor and Description |
---|
SocketChannelConnectionAcceptor(Selector selector,
IPeerConnectionFactory connectionFactory,
InetSocketAddress localAddress) |
Modifier and Type | Method and Description |
---|---|
ConnectionRoutine |
accept()
Makes an attempt to accept a new connection and returns a routine for establishing the connection.
|
InetSocketAddress |
getLocalAddress() |
NetworkInterface |
getNetworkInterface() |
public SocketChannelConnectionAcceptor(Selector selector, IPeerConnectionFactory connectionFactory, InetSocketAddress localAddress)
public InetSocketAddress getLocalAddress()
public NetworkInterface getNetworkInterface()
public ConnectionRoutine accept()
PeerConnectionAcceptor
accept
in interface PeerConnectionAcceptor
Copyright © 2016–2021. All rights reserved.