R
renyp
Unregistered / Unconfirmed
GUEST, unregistred user!
try
UDPClient.SendBuffer(SERVER_AD
UDPClient.
//接收服务器消息
except
on EIdSocketError do
MessageDlg('登录服务器失败!', mtWarning, [mbOK], 0);
end;
若服务器端程序未启动,客户端会产生EIdSocketError异常,上面的写法不能捕捉到这种异常,应该如何实现呢?
UDPClient.SendBuffer(SERVER_AD
DR, SERVER_PORT, msg, sizeof(msg));UDPClient.
//接收服务器消息
except
on EIdSocketError do
MessageDlg('登录服务器失败!', mtWarning, [mbOK], 0);
end;
若服务器端程序未启动,客户端会产生EIdSocketError异常,上面的写法不能捕捉到这种异常,应该如何实现呢?