Asterisk-Java

org.asteriskjava.util
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 397 2006-05-26 12:13:32Z srt $
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.

Asterisk-Java

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