On 10/19/06, Niklas Therning <[EMAIL PROTECTED]> wrote:
I think a good compromise would be to keep the connect(address) method of IoConnector but get rid of the IoServiceConfig. An IoConnector would simply be configured directly using properties on it. That makes configuration a lot easier. IMO, keeping connect(address) would give symmetry between IoAcceptor and IoConnector. IoAcceptor handles multiple *incoming* connections for a single IoHandler while IoConnector handles multiple *outgoing* connections for a single IoHandler.
Very nice. I refactored just like what you suggested. * IoConnector.localAddress and remoteAddress are gone. * Replaced IoConnector.connect() with connect(SocketAddress) and connect(SocketAddress, SocketAddress) Thanks, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
