Does
SocketConnector connector = new SocketConnector(); connector.connect(
new InetSocketAddress( "localhost",
Integer.parseInt( 54321 ) ),
new MyProtocolHandler() );Uses MyProtocolHandler()
from a pre used cache?I have an application that transmit images to
a server.Each images are not sent via bulk and are sent
independently,Because of that, i would need to create a new
MyProtocolHandler() instance for every connection.Would there be a
better implementation for this?
For the connector side, the IoHandler that you pass in is for just that one connection.
This is opposite from the IoAcceptor side.. It takes an IoHandler, but it is shared amongst all connections accepted.
In this situation, you will get the behavior that you want. -pete -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
