org.newsclub.net.unix
Class AFUNIXServerSocket

java.lang.Object
  extended by java.net.ServerSocket
      extended by org.newsclub.net.unix.AFUNIXServerSocket

public class AFUNIXServerSocket
extends java.net.ServerSocket

The server part of an AF_UNIX domain socket.

Author:
Christian Kohlsch??tter

Constructor Summary
protected AFUNIXServerSocket()
           
 
Method Summary
 java.net.Socket accept()
          
 void bind(java.net.SocketAddress endpoint, int backlog)
          
static AFUNIXServerSocket bindOn(AFUNIXSocketAddress addr)
          Returns a new AF_UNIX ServerSocket that is bound to the given AFUNIXSocketAddress.
 void close()
           
 boolean isBound()
          
static boolean isSupported()
           
static AFUNIXServerSocket newInstance()
          Returns a new, unbound AF_UNIX ServerSocket.
 java.lang.String toString()
           
 
Methods inherited from class java.net.ServerSocket
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AFUNIXServerSocket

protected AFUNIXServerSocket()
                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

newInstance

public static AFUNIXServerSocket newInstance()
                                      throws java.io.IOException
Returns a new, unbound AF_UNIX ServerSocket.

Returns:
The new, unbound AFUNIXServerSocket.
Throws:
java.io.IOException

bindOn

public static AFUNIXServerSocket bindOn(AFUNIXSocketAddress addr)
                                 throws java.io.IOException
Returns a new AF_UNIX ServerSocket that is bound to the given AFUNIXSocketAddress.

Returns:
The new, unbound AFUNIXServerSocket.
Throws:
java.io.IOException

bind

public void bind(java.net.SocketAddress endpoint,
                 int backlog)
          throws java.io.IOException

Overrides:
bind in class java.net.ServerSocket
Throws:
java.io.IOException

isBound

public boolean isBound()

Overrides:
isBound in class java.net.ServerSocket

accept

public java.net.Socket accept()
                       throws java.io.IOException

Overrides:
accept in class java.net.ServerSocket
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.net.ServerSocket

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.net.ServerSocket
Throws:
java.io.IOException

isSupported

public static boolean isSupported()