Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: $FF (255) byte isn't sent

www.cryer.info
Managed Newsgroup Archive

Re: $FF (255) byte isn't sent

Subject:Re: $FF (255) byte isn't sent
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 25 Apr 2007 09:46:53

"Michael Stieler" <michael.stieler@rie.eu> wrote in message
news:462f3f0b$1@newsgroups.borland.com...

>   I'm using a TIdTcpServer and send with
> tcpServer.IOHandler.Write(idByteBuffer);

How exactly are you filling in idByteBuffer, though?  Write(TIdBytes)
sends the contents of the TIdBytes as-is, so any problem you are
having with $FF bytes has to be in how you are filling in the
TIdBytes, not in how you are sending it.

> There are statements like the following in my application
> AppendByte(buff, MessageType);

That will not lose $FF bytes.

> Now if MessageType would be 0xff i'd have to use an if-clause

No, you wouldn't.  Please show a more complete code snippet that shows
everything you are doing with the TIdBytes between declaration and
transmission.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive