M moko Unregistered / Unconfirmed GUEST, unregistred user! 2005-12-25 #1 IdUdpServer IdUDPClient 如何实现字符串的发送,简单的例子和相关资料那里有? 大虾指点!
M moko Unregistered / Unconfirmed GUEST, unregistred user! 2005-12-25 #2 IdUdpServer IdUDPClient 如何实现字符串的发送,简单的例子和相关资料那里有? 大虾指点!
M moko Unregistered / Unconfirmed GUEST, unregistred user! 2005-12-25 #3 //接收端 var s:string; begin s:=IdUDPServer1.ReceiveString(); memo1.Lines.Add(s); end; //---------------------------------------------- //发送端 IdUDPServer1.Send('127.0.0.1',1234,'你好'); //---------------------------------------------- 运行接收端 然后用发送端发送'你好'字符串,可接收段却无响应? 这是为什么?
//接收端 var s:string; begin s:=IdUDPServer1.ReceiveString(); memo1.Lines.Add(s); end; //---------------------------------------------- //发送端 IdUDPServer1.Send('127.0.0.1',1234,'你好'); //---------------------------------------------- 运行接收端 然后用发送端发送'你好'字符串,可接收段却无响应? 这是为什么?
M moko Unregistered / Unconfirmed GUEST, unregistred user! 2005-12-25 #4 procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TStream;ABinding: TIdSocketHandle); var s:string; begin s:=IdUDPServer1.ReceiveString(); memo1.Lines.Add(s); end;
procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TStream;ABinding: TIdSocketHandle); var s:string; begin s:=IdUDPServer1.ReceiveString(); memo1.Lines.Add(s); end;
M moko Unregistered / Unconfirmed GUEST, unregistred user! 2005-12-25 #6 没错 请问IdUdpServer IdUDPClient 他们有什么区别 网上好多文章都是只用一个IdUdpServer