Message lost
bgoetzmann
bgoetzmann at sophia.symag.com
Mon Jun 28 17:21:10 EDT 2010
Finally, I think that I understand my mistake: I thought in terms of messages
and not in terms of byte packets.
Implicitely I supposed that for each write statement in the client part, I
received one message in the server part, but it's not mandatory.
I've resolved my specific problem that was to send a file from a client to a
server, and for which I needed to send first some information about the file
to transfer.
So my first idea was to send an object using an encoded handler, removed
this handler, and used a chunked writer handler, but I realize that it
conducted to mixed data on the server part.
Now I use only one handler for each part of the application, and the client
part write bytes containing informations about the file to transfer (name
and length), a 0 value, followed by the content data file; and on the server
side, I am able to fetch the correct data, knowing that it is possible that
the first message received can not be only the information file.
Is there a better way to do a such thing, playing with the dynamic handlers
in a pipeline like I tried to do? Let me to know.
Soon, I will share my application JavaFX/Netty application. And thanks Netty
it is really very fast!
Cheers,
Bertrand,
http://www.odelia-technologies.com
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Message-lost-tp5228547p5232713.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list