60 |
} |
} |
61 |
|
|
62 |
/** |
/** |
63 |
* Accepts a connection made to this channel's socket. |
* Accepts a connection made to this channel's socket. |
64 |
|
* |
65 |
|
* @exception IOException If an error occurs |
66 |
|
* @exception AsynchronousCloseException If another thread closes this |
67 |
|
* channel while the accept operation is in progress. |
68 |
|
* @exception ClosedByInterruptException If another thread interrupts the |
69 |
|
* current thread while the accept operation is in progress, thereby closing |
70 |
|
* the channel and setting the current thread's interrupt status. |
71 |
|
* @exception ClosedChannelException If the channel is closed. |
72 |
|
* @exception NotYetBoundException If the channel's socket is not yet bound. |
73 |
|
* @exception SecurityException If a security manager has been installed and |
74 |
|
* it does not permit access to the remote endpoint of the new connection. |
75 |
*/ |
*/ |
76 |
public abstract SocketChannel accept (); |
public abstract SocketChannel accept (); |
77 |
|
|
81 |
public abstract ServerSocket socket (); |
public abstract ServerSocket socket (); |
82 |
|
|
83 |
/** |
/** |
84 |
* Opens a server socker channel. |
* Opens a server socket channel. |
85 |
|
* |
86 |
|
* @exception IOException If an error occurs |
87 |
*/ |
*/ |
88 |
public static ServerSocketChannel open () throws IOException |
public static ServerSocketChannel open () throws IOException |
89 |
{ |
{ |