net.sf.asterisk.io
Interface ServerSocketFacade

All Known Implementing Classes:
ServerSocketFacadeImpl

public interface ServerSocketFacade

The ServerSocketFacade provides operations to accept client connections over TCP/IP sockets.
It hides the details of the underlying I/O system used for server socket communication.

Version:
$Id: ServerSocketFacade.java,v 1.3 2005/10/25 22:43:25 srt Exp $
Author:
srt

Method Summary
 SocketConnectionFacade accept()
          Waits for a new incoming connection.
 void close()
          Unbinds and closes the server socket.
 

Method Detail

accept

SocketConnectionFacade accept()
                              throws java.io.IOException
Waits for a new incoming connection.

Returns:
the new connection.
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Unbinds and closes the server socket.

Throws:
java.io.IOException - if the server socket cannot be closed.


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.