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 938 2007-12-31 03:23:38Z 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 - if an I/O error occurs when waiting for a connection.

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-2009 Stefan Reuter. All Rights Reserved.