mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Ulrich (proemion)" <steve.ulr...@proemion.com>
Subject Re: SocketConnector functionality
Date Thu, 03 Jan 2008 14:50:16 GMT

Michael Bauroth wrote:
> is there a special reason, why the NioSocketConnector hasn't the same 
> methods like the acceptors (bind, unbind, isBound vs. connect, 
> disconnect, isConnected)? Would be fine if somebody could bring some 
> more light into this :)
I think that's because the Acceptor listens to at a specific port and is
therfore bound to this port. Just because an acceptor is bound, that doesn't
mean that there are any connections. There's even the possibility that the
Acceptor is unbound but there are still connections to clients, because the
"real" communication is handled over different ports. A connector connects
itself to a server, so there are just 2 posibilites: it is connected to
somewhere, or it isn't.


View this message in context: http://www.nabble.com/SocketConnector-functionality-tp14597736s16868p14598135.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

View raw message