async.net.impl
Class DefaultASyncSocket

java.lang.Object
  extended by async.net.impl.DefaultASyncSocket
All Implemented Interfaces:
ASyncSocket

public class DefaultASyncSocket
extends Object
implements ASyncSocket


Constructor Summary
DefaultASyncSocket(ThreadHandler handler, InetAddress address, ExceptionCallback<IOException> exceptionCallback)
           
 
Method Summary
 void connectTo(String host, int port, IOCallback callback)
           
 RemoteControl listenOn(int port, IOCallback ioCallback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultASyncSocket

public DefaultASyncSocket(ThreadHandler handler,
                          InetAddress address,
                          ExceptionCallback<IOException> exceptionCallback)
Method Detail

listenOn

public RemoteControl listenOn(int port,
                              IOCallback ioCallback)
                       throws IOException
Specified by:
listenOn in interface ASyncSocket
Throws:
IOException

connectTo

public void connectTo(String host,
                      int port,
                      IOCallback callback)
               throws IOException
Specified by:
connectTo in interface ASyncSocket
Throws:
IOException


Copyright © 2011. All Rights Reserved.