Re: Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- From: danny heijl <danny.heijl.not@xxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 19:02:30 +0100
Francisco Alvarado schreef:
This Delphi 5 Code doesn't work
You shouldn't really try to convert such clumsy VB6 code to Delphi.
Indy has a "WriteCardinal" method that you can use to send a 4 byte integer value in Intel or in network byte order. So all that VB6 stuff translates to 2 lines of Delphi code:
WriteCardinal(length(buffer), True); // length in network byte order
WriteBuffer(Data, Length(data), True); // data
This is from memory, so it may not be syntactically correct.
Danny
---
.
- Follow-Ups:
- Re: Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- From: Francisco Alvarado
- Re: Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- References:
- Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- From: Francisco Alvarado
- Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- Prev by Date: Re: Traffic a little slow in this NG ?
- Next by Date: Re: Delphi for Linux
- Previous by thread: Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- Next by thread: Re: Sending xml from Indy TCPClient 9.0.18 and Delphi 5
- Index(es):
Relevant Pages
|
|