Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / February 2005

Tip: Looking for answers? Try searching our database.

Synchronise Communication between client and Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MalteseFalcon - 10 Feb 2005 16:17 GMT
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.

Signature

Before God we are equally wise and equally foolish.
-- Albert Einstein

Eugene Mayevski - 10 Feb 2005 21:43 GMT
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 - 11 Feb 2005 11:33 GMT
Hello

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

J

> Hello!
> You wrote  on Thu, 10 Feb 2005 08:17:05 -0800:
[quoted text clipped - 18 lines]
> With best regards,
> Eugene Mayevski

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.