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 / April 2008

Tip: Looking for answers? Try searching our database.

Duplicate 0xFF in Socket.Receive(Byte[])???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael R. Nelson - 21 Apr 2008 14:30 GMT
I use Socket.Receive(Byte[]) to receive data in server from client over
TCP/IP. All byte values of 0xFF sent by client are showing up DUPLICATED in
server receive. In other words, if client sends [0xFF, 0x01], then server
receives [0xFF, 0xFF, 0x01]. It's as if bytes having values 0xFF are treated
as some sort of DLE that needs to be repeated to get through. Any idea what's
going on here?
Peter Duniho - 21 Apr 2008 18:08 GMT
> I use Socket.Receive(Byte[]) to receive data in server from client over
> TCP/IP. All byte values of 0xFF sent by client are showing up DUPLICATED  
> in
> server receive.

I am confident that's not actually the case.

> In other words, if client sends [0xFF, 0x01], then server
> receives [0xFF, 0xFF, 0x01]. It's as if bytes having values 0xFF are  
> treated
> as some sort of DLE that needs to be repeated to get through. Any idea  
> what's
> going on here?

Not without a concise-but-complete code sample that reliably demonstrates  
the problem.  Note that for network problems, that means both ends of the  
communication.

Undoubtedly you have an error either in your sending code or your  
receiving code.  But what that error is would be impossible to say without  
a code example demonstrating the problem.

Pete
Michael R. Nelson - 21 Apr 2008 20:10 GMT
Turns out a serial to IP bridge device in the loop was performing telnet
translation.

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.