|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--mdw.nbio.NonblockingServerSocket
A NonblockingServerSocket implements a nonblocking variant of java.net.ServerSocket. (Ideally it would simply extend the latter class, but ServerSocket does not contain an appropriate public constructor which would make that feasible.)
java.net.ServerSocket
インタフェース mdw.nbio.Selectable から継承したフィールド |
ACCEPT_READY, CONNECT_READY, READ_READY, SELECT_ERROR, WRITE_READY |
コンストラクタの概要 | |
NonblockingServerSocket(int port)
Create a nonblocking server socket listening on the given port. |
|
NonblockingServerSocket(int port,
int backlog)
Create a nonblocking server socket listening on the given port with the given connection backlog (the default is 511). |
|
NonblockingServerSocket(int port,
int backlog,
java.net.InetAddress bindAddr)
Create a nonblocking server socket listening on the given port, with the given connection backlog, bound to the given address. |
メソッドの概要 | |
NonblockingSocket |
accept()
Accept a connection on this server socket. |
void |
close()
Close the socket. |
java.net.InetAddress |
getInetAddress()
Return the address to which this socket is bound. |
int |
getLocalPort()
Return the port to which this socket is bound. |
int |
getSoTimeout()
Currently unimplemented. |
NonblockingSocket |
nbAccept()
Perform a nonblocking accept() on this socket. |
void |
setSoTimeout(int timeout)
Currently unimplemented. |
java.lang.String |
toString()
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public NonblockingServerSocket(int port) throws java.io.IOException
public NonblockingServerSocket(int port, int backlog) throws java.io.IOException
public NonblockingServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException
メソッドの詳細 |
public NonblockingSocket accept() throws java.io.IOException
public NonblockingSocket nbAccept() throws java.io.IOException
SelectSet
public java.net.InetAddress getInetAddress()
public int getLocalPort()
public void setSoTimeout(int timeout) throws java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
public void close() throws java.io.IOException
public java.lang.String toString()
java.lang.Object
内の toString
|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |