不
不困
Unregistered / Unconfirmed
GUEST, unregistred user!
监听端口和发送端口相同
//监听本地端口
RSocket.Proto := 'udp';
RSocket.Addr := '0.0.0.0';
RSocket.Port := '9001';
RScoket.localport :='9001';
RSocket.Listen;
//发送信息至服务器端
TmpStr :='#$xmmxmx';
WSocket.Proto := 'udp';
WSocket.Addr := '192.168.0.1';
WScoket.localport :='9001';
WSocket.Port:= '10000';
WSocket.Connect;
WSocket.SendStr(TmpStr);
WSocket.Close;
错误信息:winsock.bind failed ,error #11048
紧急~~
//监听本地端口
RSocket.Proto := 'udp';
RSocket.Addr := '0.0.0.0';
RSocket.Port := '9001';
RScoket.localport :='9001';
RSocket.Listen;
//发送信息至服务器端
TmpStr :='#$xmmxmx';
WSocket.Proto := 'udp';
WSocket.Addr := '192.168.0.1';
WScoket.localport :='9001';
WSocket.Port:= '10000';
WSocket.Connect;
WSocket.SendStr(TmpStr);
WSocket.Close;
错误信息:winsock.bind failed ,error #11048
紧急~~