public interface StreamConnectionNotifier extends Connection
| Modifier and Type | Method and Description |
|---|---|
StreamConnection |
acceptAndOpen()
Returns a
StreamConnection object that represents
a server side socket connection. |
closeStreamConnection acceptAndOpen() throws IOException
StreamConnection object that represents
a server side socket connection. The method blocks until
a connection is made.
If a connection is attempted and a security manager exists, the
security manager's checkAccept(host, port) method is
called to ensure that a connection from the remote host and port
is permitted.
StreamConnection to communicate with a client.IOException - If an I/O error occurs.
SecurityException - If a security
manager exists, and its checkAccept method does
not allow the operation.
Copyright © 2012 code4tv.com. All Rights Reserved.