摘要:
客户端IdTCPClient向服务端IdTCPServer1发送消息1、连接 with IdTCPServer1 do begin Bindings.Clear; Bindings.Add.IP := '127.0.0.1'; Bindings.Add.Port := 1982; Active := True; end; with IdTCPClient1 do begin Host := '127.0.0.1'; Port := 1982; Connect; end;2、服务端向客户端发消息procedure TForm1.BtnSendClic... 阅读全文