i did some test
ad i have e problem/mistake.

i explain:
i have one server and two clients.

in order:
client1 send 1000 messages to server
client2 send 10 messages to server

server receive messages from client1
server receive messages from client2
client2 end message
server close all connection
client1 have still message to send

how i can resolve this sessionClose!?!?!?

On Tue, May 26, 2009 at 4:10 PM, Andres Martinez Quijano <[email protected]
> wrote:

> You can have an application that listens on port 33789 that can handle
> several (potentially thousands) of clients connecting to it.
>
> You don't need to worry about how, the operating system will take care of
> it.
>
> MINA is an excellent choice for this, and will let you handle all the
> clients (in MINA terminology, IoSession objects) that are connected to
> the same listening port
>
> On Tue, May 26, 2009 at 11:06 AM, Emmanuel Lecharny
> <[email protected]> wrote:
> > Pietro Guerrieri wrote:
> >>
> >> i have mina server that read tcp message.
> >>
> >> to this server there are two clients that send messages on the same port
> >> (55000)
> >>
> >> just a moment, i can explain my problem with an example
> >>
> >> in mina-2.0.0-M4 package there's the "imagine" tutorial at this
> >>
> >>
> path:mina-2.0.0-M4\src\mina-example\src\main\java\org\apache\mina\example\imagine
> >>
> >> in step1 directory there is:
> >> ImageServer.java listening on port 33789
> >> ImageServerIoHandler.java that receive message from one client
> >> (messageReceived)
> >>
> >> suppose there are two clients that send image to server
> >>
> >> how i can receive all images.. from client1 and client2 on the same port
> >> (33789) !?!?!?
> >>
> >
> > I still don't get it... I'm not sure if you have a MINA related question,
> or
> > if you just need to read about the TCP protocol, and the way it works...
> >
> > --
> > --
> > cordialement, regards,
> > Emmanuel Lécharny
> > www.iktek.com
> > directory.apache.org
> >
> >
> >
>

Reply via email to