Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > dotnet framework > april 2008 >

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


Michael R. Nelson
4/21/2008 6:30:02 AM
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
Peter Duniho
4/21/2008 10:08:26 AM
On Mon, 21 Apr 2008 06:30:02 -0700, Michael R. Nelson
[quoted text, click to view]

I am confident that's not actually the case.

[quoted text, click to view]

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
4/21/2008 12:10:03 PM
Turns out a serial to IP bridge device in the loop was performing telnet
AddThis Social Bookmark Button