Uses of Class
org.newsclub.net.unix.AFServerSocket
-
Uses of AFServerSocket in org.newsclub.net.unix
Modifier and TypeClassDescriptionfinal class
The server part of an AF_UNIX domain socket.Modifier and TypeMethodDescriptionAFServerSocket
<? extends T> Creates anAFServerSocket
bound to the given address.final AFServerSocket
<A> AFServerSocket.bindHook
(SocketAddressFilter hook) Sets the hook for any subsequent call tobind(SocketAddress)
andbind(SocketAddress, int)
to be the given function.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.bindOn
(AFServerSocket.Constructor<A> instanceSupplier, A addr, boolean deleteOnClose) Returns a newServerSocket
that is bound to the givenAFSocketAddress
.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.bindOn
(AFServerSocket.Constructor<A> instanceSupplier, AFSocketAddress addr) Returns a newServerSocket
that is bound to the givenAFSocketAddress
.final AFServerSocket
<A> AFServerSocket.forceBindAddress
(SocketAddress endpoint) Forces the address to be used for any subsequent call tobind(SocketAddress)
to be the given one, regardless of what'll be passed tobind(SocketAddress, int)
, but doesn't bind yet.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.forceBindOn
(AFServerSocket.Constructor<A> instanceSupplier, A forceAddr) Returns a new, unboundServerSocket
that will always bind to the given address, regardless of any socket address used in a call tobind
.AFSocketAddress.newBoundServerSocket()
Creates a new server socket bound to this address.AFSocketAddress.newForceBoundServerSocket()
Creates a new server socket force-bound to this address (i.e., any additional call toServerSocket.bind(SocketAddress)
will ignore the passed address and use this one instead.@NonNull AFServerSocket
<A> AFServerSocket.Constructor.newInstance
(FileDescriptor fd) Creates a newAFServerSocket
instance.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.newInstance
(AFServerSocket.Constructor<A> instanceSupplier) Creates a new AFServerSocket instance, using the given subclass constructor.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.newInstance
(AFServerSocket.Constructor<A> instanceSupplier, FileDescriptor fdObj, int localPort, int remotePort) Creates a new AFServerSocket instance, using the given subclass constructor.AFAddressFamily.newServerSocket()
Creates a new, unconnected, unbound server socket compatible with this socket address.final AFServerSocket
<A> AFServerSocketChannel.socket()
Modifier and TypeMethodDescriptionprotected abstract Class
<? extends AFServerSocket<A>> AFAddressFamilyConfig.serverSocketClass()
Returns the implementation'sServerSocket
class.ModifierConstructorDescriptionprotected
AFServerSocketChannel
(AFServerSocket<A> socket, AFSelectorProvider<A> sp) Creates a newAFServerSocketChannel
instance.