Re: Sending xml from Indy TCPClient 9.0.18 and Delphi 5



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
---



.



Relevant Pages

  • Re: WiFi for a laptop
    ... The CPU is Intel and can step down in speed from about 2791 MHz. ... 02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection ... One is a Atheros Communications Inc. and the other is a Realtek Semiconductor Co. so I'm not sure which is what. ... As for posting the whole list, It is on a laptop with no Internet. ...
    (Fedora)
  • Re: WARNING: Intel Net cards and WM5
    ... its an ethernet connection using an Intel Pro/100 VE onboard card. ... As for wireless being inexpensive, that's true, but we're a local authority, ... "Network" card is not ...
    (microsoft.public.pocketpc.activesync)
  • lots of funny errors in intel 82546eb/e1000 device
    ... Hello, I bought an intel 82546EB dual-portPCI-X network card, ... # ifconfig eth2 ...
    (comp.os.linux.networking)
  • Networking over a proxy server
    ... I have an Intel PRO/Wireless LAN 2100 3B Mini PCI ... My friend and I got the cables from our network admin(a ... (without enabling proxy in IE and other programmes e.g. ...
    (microsoft.public.windowsxp.network_web)
  • Network interrupts
    ... I am a newbie trying to bring up a board on MontaVista Linux. ... board has an Intel IOP321 processor with an ARM core. ... the interface was configured correctly. ... IntelPRO/1000 Network Driver - version 5.0.43 ...
    (comp.os.linux.embedded)