Asterisk-Java

org.asteriskjava.util.internal
Class ServerSocketFacadeImpl

java.lang.Object
  extended by org.asteriskjava.util.internal.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 938 2007-12-31 03:23:38Z srt $
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 - if an I/O error occurs when waiting for a connection.

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.

Asterisk-Java

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