Groups | Blog | Home
all groups > dotnet sdk > february 2005 >

dotnet sdk : Synchronise Communication between client and Server


MalteseFalcon
2/10/2005 8:17:05 AM
Hello all,

I have written an asynchronous client/server application. I am facing a
problem with the communication between the client and the server.

The server is sending out multiple commands in a very short while. On the
client side these are not being received correctly. The commands are XML
messages. The problem is that the client is either not receiving the XML as a
whole message or, the xommands are received concatenated to one another (as
<message1><message2><part of message3>).

This is causing havoc on the client side. Any ideas how this can be handled?

Thanks and Regards
Joseph.

--
Before God we are equally wise and equally foolish.
Eugene Mayevski
2/10/2005 11:43:49 PM
Hello!
You wrote on Thu, 10 Feb 2005 08:17:05 -0800:

M> The server is sending out multiple commands in a very short while. On
M> the client side these are not being received correctly. The commands are
M> XML messages. The problem is that the client is either not receiving the
M> XML as a whole message or, the xommands are received concatenated to one
M> another (as <message1><message2><part of message3>).
M> This is causing havoc on the client side. Any ideas how this can be
M> handled?

Without knowing exactly how you send the messages it's hard to say. Assuming
that you are using TCP sockets, I can say the following:

one of great misconceptions of programmers is that they believe TCP
communication to be message-based. It's not. It's stream-based. If you need
messages, you need to manually merge and split messages that you receive or
use some message-oriented middleware. You can check MsgConnect
(http://www.msgconnect.com/) which eliminates the problem.

With best regards,
Eugene Mayevski
MalteseFalcon
2/11/2005 3:33:01 AM
Hello

The problem is exactly with TCP. I am considering the option of MsgConnect.
Thanks for the answer.

J

[quoted text, click to view]
AddThis Social Bookmark Button