async.net.socket.impl
Class DefaultSocketFactory

java.lang.Object
  extended by async.net.socket.impl.DefaultSocketFactory
All Implemented Interfaces:
SocketFactory

public class DefaultSocketFactory
extends Object
implements SocketFactory


Constructor Summary
DefaultSocketFactory()
           
 
Method Summary
 ServerSocket createServerSocket(int port, InetAddress address)
           
 Socket createSocket(String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSocketFactory

public DefaultSocketFactory()
Method Detail

createServerSocket

public ServerSocket createServerSocket(int port,
                                       InetAddress address)
                                throws IOException
Specified by:
createServerSocket in interface SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException
Specified by:
createSocket in interface SocketFactory
Throws:
IOException


Copyright © 2011. All Rights Reserved.