net.sf.asterisk.io.impl
Class ServerSocketFacadeImpl

java.lang.Object
  extended by net.sf.asterisk.io.impl.ServerSocketFacadeImpl
All Implemented Interfaces:
ServerSocketFacade

public class ServerSocketFacadeImpl
extends java.lang.Object
implements ServerSocketFacade

Default implementation of the ServerSocketFacade interface using standard java.io classes (ServerSocket in this case).

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

Constructor Summary
ServerSocketFacadeImpl(int port, int backlog, java.net.InetAddress bindAddress)
           
 
Method Summary
 SocketConnectionFacade accept()
          Waits for a new incoming connection.
 void close()
          Unbinds and closes the server socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSocketFacadeImpl

public ServerSocketFacadeImpl(int port,
                              int backlog,
                              java.net.InetAddress bindAddress)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

accept

public SocketConnectionFacade accept()
                              throws java.io.IOException
Description copied from interface: ServerSocketFacade
Waits for a new incoming connection.

Specified by:
accept in interface ServerSocketFacade
Returns:
the new connection.
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: ServerSocketFacade
Unbinds and closes the server socket.

Specified by:
close in interface ServerSocketFacade
Throws:
java.io.IOException - if the server socket cannot be closed.


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