Module org.newsclub.net.unix.darwin
Class AFSYSTEMServerSocket
java.lang.Object
java.net.ServerSocket
org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
org.newsclub.net.unix.darwin.system.AFSYSTEMServerSocket
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- org.newsclub.net.unix.AFSomeSocketThing,- org.newsclub.net.unix.FileDescriptorAccess
public final class AFSYSTEMServerSocket
extends org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
The server part of an 
AF_SYSTEM socket.- Author:
- Christian Kohlschütter
- 
Nested Class SummaryNested classes/interfaces inherited from class org.newsclub.net.unix.AFServerSocketorg.newsclub.net.unix.AFServerSocket.Constructor<A extends org.newsclub.net.unix.AFSocketAddress>
- 
Method SummaryModifier and TypeMethodDescriptionaccept()static AFSYSTEMServerSocketbindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress addr) Returns a new AF_SYSTEMServerSocketthat is bound to the givenAFSYSTEMSocketAddress.static AFSYSTEMServerSocketbindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress addr, boolean deleteOnClose) Returns a new AF_SYSTEMServerSocketthat is bound to the givenAFSocketAddress.static AFSYSTEMServerSocketforceBindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress forceAddr) Returns a new, unbound AF_SYSTEMServerSocketthat will always bind to the given address, regardless of any socket address used in a call tobind.protected org.newsclub.net.unix.AFServerSocketChannel<org.newsclub.net.unix.AFSYSTEMSocketAddress> protected org.newsclub.net.unix.AFSocketImpl<org.newsclub.net.unix.AFSYSTEMSocketAddress> newImpl(FileDescriptor fdObj) static AFSYSTEMServerSocketReturns a new, unbound AF_SYSTEMServerSocket.protected org.newsclub.net.unix.AFSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress> Methods inherited from class org.newsclub.net.unix.AFServerSocketaddCloseable, addressFamily, bind, bind, bindHook, bindOn, bindOn, close, forceBindAddress, forceBindOn, getFileDescriptor, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, isBound, isClosed, isDeleteOnClose, isLocalSocketAddressValid, isSupported, newInstance, newInstance, removeCloseable, setDeleteOnClose, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setShutdownOnClose, setSoTimeout, supportedOptions, toStringMethods inherited from class java.net.ServerSocketimplAccept, setSocketFactory
- 
Method Details- 
newChannelprotected org.newsclub.net.unix.AFServerSocketChannel<org.newsclub.net.unix.AFSYSTEMSocketAddress> newChannel()- Specified by:
- newChannelin class- org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
 
- 
getChannel- Overrides:
- getChannelin class- org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
 
- 
newInstanceReturns a new, unbound AF_SYSTEMServerSocket.- Returns:
- The new, unbound AFServerSocket.
- Throws:
- IOException- if the operation fails.
 
- 
bindOnpublic static AFSYSTEMServerSocket bindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress addr) throws IOException Returns a new AF_SYSTEMServerSocketthat is bound to the givenAFSYSTEMSocketAddress.- Parameters:
- addr- The socket file to bind to.
- Returns:
- The new, bound AFServerSocket.
- Throws:
- IOException- if the operation fails.
 
- 
bindOnpublic static AFSYSTEMServerSocket bindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress addr, boolean deleteOnClose) throws IOException Returns a new AF_SYSTEMServerSocketthat is bound to the givenAFSocketAddress.- Parameters:
- addr- The socket file to bind to.
- deleteOnClose- If- true, the socket file (if the address points to a file) will be deleted upon- AFServerSocket.close().
- Returns:
- The new, bound AFServerSocket.
- Throws:
- IOException- if the operation fails.
 
- 
forceBindOnpublic static AFSYSTEMServerSocket forceBindOn(org.newsclub.net.unix.AFSYSTEMSocketAddress forceAddr) throws IOException Returns a new, unbound AF_SYSTEMServerSocketthat will always bind to the given address, regardless of any socket address used in a call tobind.- Parameters:
- forceAddr- The address to use.
- Returns:
- The new, yet unbound AFServerSocket.
- Throws:
- IOException- if an exception occurs.
 
- 
newImplprotected org.newsclub.net.unix.AFSocketImpl<org.newsclub.net.unix.AFSYSTEMSocketAddress> newImpl(FileDescriptor fdObj) throws SocketException - Specified by:
- newImplin class- org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
- Throws:
- SocketException
 
- 
newSocketInstanceprotected org.newsclub.net.unix.AFSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress> newSocketInstance() throws IOException- Specified by:
- newSocketInstancein class- org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
- Throws:
- IOException
 
- 
accept- Overrides:
- acceptin class- org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFSYSTEMSocketAddress>
- Throws:
- IOException
 
 
-