Home > Back-end >  Delphi idtcpclient do
Delphi idtcpclient do

Time:11-10

4096//# define BUF_SIZE receive buffer size
Unsigned char s_buf [BUF_SIZE];//send buffer
Unsigned char r_buf [BUF_SIZE];//receive buffer

Strcpy (s_buf, "01 ff000a4420000000000500");
Length=(int) strlen (s_buf);
Send (socketno s_buf, length, 0).
C do with Delphi 7 idtcpclient how do ah, eldest help the younger brother of

The unsigned char is what east east, how to said it in Delphi

CodePudding user response:

Unsigned char
The word type directly with Delphi

CodePudding user response:

The
reference 1/f, das white reply:
unsigned char
Word type directly with Delphi

Delphi byte byte type can


Specific look at Delphi TCP controls
A lot of baidu

CodePudding user response:

Put a TIdTcpClient, such as the default called IdTcpClient1:
IdTcpClient1. Host:=...
IdTcpClient1. Port:=...
IdTcpClient1. Connect;
IdTcpClient1. WriteBuffer (... );
//...
IdTcpClient1. Disconnect;

CodePudding user response:

Problem is a little big, it from idtcpServer and idtcpclient into two aspects with the opponent,

CodePudding user response:

Here are the simple example I wrote https://download.csdn.net/download/qq_37033647/11490858

CodePudding user response:

It is ok to use TidByte directly,
  • Related