Re: Duplicate 0xFF in Socket.Receive(Byte[])??? by Peter
Peter
Mon Apr 21 12:08:27 CDT 2008
On Mon, 21 Apr 2008 06:30:02 -0700, Michael R. Nelson
<MichaelRNelson@discussions.microsoft.com> wrote:
> 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