1 20 package org.apache.mina.common.support; 21 22 import java.net.SocketAddress ; 23 24 import org.apache.mina.common.ConnectFuture; 25 import org.apache.mina.common.IoConnector; 26 import org.apache.mina.common.IoHandler; 27 28 34 public abstract class BaseIoConnector extends BaseIoService implements 35 IoConnector { 36 protected BaseIoConnector() { 37 } 38 39 public ConnectFuture connect(SocketAddress address, IoHandler handler) { 40 return connect(address, handler, getDefaultConfig()); 41 } 42 43 public ConnectFuture connect(SocketAddress address, 44 SocketAddress localAddress, IoHandler handler) { 45 return connect(address, localAddress, handler, getDefaultConfig()); 46 } 47 } 48 | Popular Tags |