delphi怎样用ClientSocket发送http请求 通过需要验证用户和(delphi三层通信方式)

delphi怎样用ClientSocket发送http请求 通过需要验证用户和(delphi三层通信方式)

首页维修大全综合更新时间:2024-04-05 19:06:29

delphi怎样用ClientSocket发送http请求 通过需要验证用户和

ProcedureTForm1.BitBtn1Click(Sender:TObject)

;varI:Integer;BeginforI:=0toServerSocket1.Socket.ActiveConnections-1DoBegin//ifServerSocket1.Socket.Connections[I].SocketHandle=XXXthenServerSocket1.Socket.Connections[I].SendText('amsg')

;//服务端发送End;End;procedureTForm1.ClientSocket1Read(Sender:TObject;Socket:TCustomWinSocket)

;beginSocket.ReceiveText;//客户端接收end;

大家还看了
也许喜欢
更多栏目

© 2021 3dmxku.com,All Rights Reserved.