J
jingtao
Unregistered / Unconfirmed
GUEST, unregistred user!
错.TCP无法返回数据
UDP可以
for i:=0 to MAXNMUDP-1 do
begin
listbox3.items.add(inttostr(MyPort));
NMUDP.LocalPort:=MyPort;
Send(i,0,'207.46.230.218',9000,pchar('hello'),5); //www.microsoft.com
Send(i,0,'202.106.185.77',9000,pchar('hello'),5); //163.com
Send(i,0,'66.218.71.113',9000,pchar('hello'),5); //yahoo.com
end;
UDP可以
for i:=0 to MAXNMUDP-1 do
begin
listbox3.items.add(inttostr(MyPort));
NMUDP.LocalPort:=MyPort;
Send(i,0,'207.46.230.218',9000,pchar('hello'),5); //www.microsoft.com
Send(i,0,'202.106.185.77',9000,pchar('hello'),5); //163.com
Send(i,0,'66.218.71.113',9000,pchar('hello'),5); //yahoo.com
end;