Uses of Class
org.newsclub.net.unix.AFSocket
-
Uses of AFSocket in org.newsclub.net.unix
Modifier and TypeClassDescriptionfinal class
Implementation of an AF_UNIX domain socket.Modifier and TypeMethodDescriptionAFServerSocket.accept()
Connect to the socket at the given address.AFSocket.connectHook
(SocketAddressFilter hook) Sets the hook for any subsequent call toconnect(SocketAddress)
orconnect(SocketAddress, int)
to be the given function.static final <A extends AFSocketAddress>
AFSocket<?> AFSocket.connectTo
(@NonNull A addr) Creates a newAFSocket
and connects it to the givenAFSocketAddress
using the default implementation suited for that address type.protected static final <A extends AFSocketAddress>
@NonNull AFSocket<A> AFSocket.connectTo
(AFSocket.Constructor<A> constr, A addr) Creates a newAFSocket
and connects it to the givenAFSocketAddress
.AFSocket.forceConnectAddress
(SocketAddress endpoint) Forces the address to be used for any subsequent call toconnect(SocketAddress)
to be the given one, regardless of what'll be passed there.AFSocketChannel.getAFSocket()
Returns the correspondingAFSocket
.AFSocket
<?> AFSocketAddress.newConnectedSocket()
Creates a new socket connected to this address.AFSocket.Constructor.newInstance
(FileDescriptor fdObj, AFSocketFactory<A> factory) Constructs a newAFSocket
subclass instance.protected static final <A extends AFSocketAddress>
AFSocket<A> AFSocket.newInstance
(AFSocket.Constructor<A> constr, AFSocketFactory<A> factory) Creates a new, unboundAFSocket
.AFSocketChannel.AFSocketSupplier.newInstance()
Returns a newAFSocket
instance.AFSocket
<?> AFAddressFamily.newSocket()
Creates a new, unconnected, unbound socket compatible with this socket address.AFSelectorProvider.newSocket()
Constructs a new socket.AFServerSocket.newSocketInstance()
Returns a newAFSocket
instance.AFSocketChannel.socket()
Modifier and TypeMethodDescriptionAFAddressFamilyConfig.socketClass()
Returns the implementation'sSocket
class.ModifierConstructorDescriptionprotected
AFSocketChannel
(AFSocket<A> socket, AFSelectorProvider<A> sp) Creates a new socket channel for the given socket, using the givenSelectorProvider
.