mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brennohay...@gmail.com
Subject Re: doubt Mina
Date Wed, 13 Feb 2008 19:32:34 GMT
to example echoserver, how to make this test:
open 20000 conection and send message simultaneous? someone did this? 	
I want to check the performance of the example echoserver.

some tips?

thanks

On 2/13/08, 이희승 (Trustin Lee) <trustin@gmail.com> wrote:
> I am not sure if it's a more flexible solution considering we are going
> to have more transports.  For example, we have serial port communication
> transport, and we will have to add a visit method per each transport.
>
> Trustin
>
> 2008-02-13 (수), 09:58 -0500, Adam Fisk 쓰시길:
> > This would be a nice place for the good old visitor pattern, so
> > something like, in SocketSession,
> >
> > SocketSession implements VisitableSession
> >
> > ...
> > public void accept(final SessionVisitor visitor)
> > {
> >     visitor.visitSocketSession(this);
> > }
> >
> > Then you have a lot of flexibility with the visitor itself to handle
> > types nicely. The SessionVisitor would be an interface like:
> >
> > public interface SessionVisitor
> > {
> >  void visitSocketSocket(final SocketSession session);
> >  void visitDatagramSession(final DatagramSession session);
> > }
> >
> > I'd be happy to make a patch along those lines if people were
> > interested.  It would use generics for return types rather than the
> > above for slightly more flexibility.
> >
> > -Adam
> >
> >
> > On Feb 13, 2008 12:06 AM, 이희승 (Trustin Lee) <trustin@gmail.com> wrote:
> > > 2008-01-28 (월), 10:47 -0400, Brenno Hayden 쓰시길:
> > > > Hello ,
> > > >     i have same doubt..
> > > >  -  How can I tell if the connection is udp or tcp?
> > >
> > > In 1.x, you can use IoSession.getTransportType().  In 2.x, you can
> > > simply use 'instanceof SocketSession' or 'instanceof DatagramSession'.
> > >
> > > --
> > > what we call human nature is actually human habit
> > > --
> > > http://gleamynode.net/
> > >
> >
> >
> >
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
>


-- 
________________________
Brenno Hayden F. Dantas
Mime
View raw message