浮
浮生
Unregistered / Unconfirmed
GUEST, unregistred user!
我用UDP进行B类网广播通讯(如202.118.255.255,我所在的局域网)
但编译时出现如下错误,小弟不解
Project Project1.exe raised exception class UDPSockError with message'Host Lookup Canceled';
Process stopped.
UDP 设置为
NMUDP1.ReportLevel:=Status_Basic;
NMUDP1.RemoteHost:=netaddr+'255.255';(netaddr为网段地址202.118.)
NMUDP1.RemotePort:=4546;
MyStream:=TMemoryStream.Create;
lth:=length(tmpstr);
try
MyStream.Write(TmpStr[1],lth);
NMUDP1.SendStream(MyStream);
finally
MyStream.Free;
end;
恳请大家释疑,谢谢。
但编译时出现如下错误,小弟不解
Project Project1.exe raised exception class UDPSockError with message'Host Lookup Canceled';
Process stopped.
UDP 设置为
NMUDP1.ReportLevel:=Status_Basic;
NMUDP1.RemoteHost:=netaddr+'255.255';(netaddr为网段地址202.118.)
NMUDP1.RemotePort:=4546;
MyStream:=TMemoryStream.Create;
lth:=length(tmpstr);
try
MyStream.Write(TmpStr[1],lth);
NMUDP1.SendStream(MyStream);
finally
MyStream.Free;
end;
恳请大家释疑,谢谢。