On 10/19/07, leafsax <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I implemented a PeerServer and a PeerClient using SocketAcceptor and a
> SocketConnector,
> and they performed good on both side, the scalability, throughput and
> stability were good.
> Then I wanted to do something else --- put PeerServer and PeerClient
> together in an application,
> since it is named Peer. There were 2 threads in SocketAcceptor and
> SocketConnector ---
> both of which contains a Worker and a SocketIoProccessor, they are doing
> similar things, so I
> want to combine them together, then I can use 1 selector thread(acceptor or
> connector worker)
> and 1 IO proccessor thread to do both things.
>
> Summary:
> Combine SocketAcceptor and SocketConnector to use 1 worker and 1
> SocketIoProccessor
>
> How can I do this?

We are currently working on combining SocketIoProcessor threads.
However, I don't see much benefit combining SocketAcceptor and
Connector workers.  Of course, it will make sense though to make one
SocketAcceptor thread to handle multiple binds and
SocketConnectorConnector thread to handler multiple connection
attempts.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to