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 / New Users / March 2007

Tip: Looking for answers? Try searching our database.

.NET Client Submitting Tab Delimited String to C++ Server Loses Em

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew Wieder - 28 Feb 2007 21:03 GMT
We have a .NET 2.0 Client (C#) that  communicates with a C++  (2005) Server
via TCP.  The tab delimited strings "January\tFebruary" and
"January\t\tFebruary" submitted by the client both arrive at the server as
"January\tFebruary".  We need to be able to preserve the existance of 3
elements in the second input string (the middle element being null).   Is
this a bug in the communcation?  Is there some solution short of requiring
the server to handle some other delimiter?
Oliver Sturm - 04 Mar 2007 14:58 GMT
Hello Matthew,

>Is this a bug in the communcation?

TCP doesn't care about the kind of data you transmit - if you send 17
characters, this translates into a byte sequence that will be transmitted
unchanged to the other side, and that can be decoded into the same 17
characters after reception. If anything goes wrong with this, it will be
your own encoding/decoding code making the mistake.

If you post some code that reproduces the problem, we might have a look -
without that it's impossible to say what causes the problem.

               Oliver Sturm
Signature

http://www.sturmnet.org/blog


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.