public class UnixServerSocket
extends java.net.ServerSocket
Constructor and Description |
---|
UnixServerSocket(java.io.File path,
int backlog) |
UnixServerSocket(java.lang.String path,
int backlog) |
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
accept() |
void |
bind(java.net.SocketAddress arg0) |
void |
bind(java.net.SocketAddress arg0,
int arg1) |
void |
close() |
java.nio.channels.ServerSocketChannel |
getChannel() |
java.net.InetAddress |
getInetAddress() |
int |
getLocalPort() |
java.net.SocketAddress |
getLocalSocketAddress() |
int |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
void |
setPerformancePreferences(int arg0,
int arg1,
int arg2) |
void |
setReceiveBufferSize(int arg0) |
void |
setReuseAddress(boolean arg0) |
void |
setSoTimeout(int arg0) |
java.lang.String |
toString() |
public UnixServerSocket(java.lang.String path, int backlog) throws java.io.IOException
java.io.IOException
public UnixServerSocket(java.io.File path, int backlog) throws java.io.IOException
java.io.IOException
public java.net.Socket accept() throws java.io.IOException
accept
in class java.net.ServerSocket
java.io.IOException
public void bind(java.net.SocketAddress arg0, int arg1) throws java.io.IOException
bind
in class java.net.ServerSocket
java.io.IOException
public void bind(java.net.SocketAddress arg0) throws java.io.IOException
bind
in class java.net.ServerSocket
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.net.ServerSocket
java.io.IOException
public java.nio.channels.ServerSocketChannel getChannel()
getChannel
in class java.net.ServerSocket
public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.ServerSocket
public int getLocalPort()
getLocalPort
in class java.net.ServerSocket
public java.net.SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class java.net.ServerSocket
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in class java.net.ServerSocket
java.net.SocketException
public boolean getReuseAddress() throws java.net.SocketException
getReuseAddress
in class java.net.ServerSocket
java.net.SocketException
public int getSoTimeout() throws java.io.IOException
getSoTimeout
in class java.net.ServerSocket
java.io.IOException
public boolean isBound()
isBound
in class java.net.ServerSocket
public boolean isClosed()
isClosed
in class java.net.ServerSocket
public void setPerformancePreferences(int arg0, int arg1, int arg2)
setPerformancePreferences
in class java.net.ServerSocket
public void setReceiveBufferSize(int arg0) throws java.net.SocketException
setReceiveBufferSize
in class java.net.ServerSocket
java.net.SocketException
public void setReuseAddress(boolean arg0) throws java.net.SocketException
setReuseAddress
in class java.net.ServerSocket
java.net.SocketException
public void setSoTimeout(int arg0) throws java.net.SocketException
setSoTimeout
in class java.net.ServerSocket
java.net.SocketException
public java.lang.String toString()
toString
in class java.net.ServerSocket