L
lcl_003
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TMain.ServerSocket1ClientConnect(Sender: TObject;
Socket: TCustomWinSocket);
begin
listen.label1.Caption := '与监控端连接成功!可以开始试验';
listen.button1.Caption := '关闭';
Application.MessageBox('与监控端连接成功! ', '信息', MB_OK + MB_ICONinformation);
socket.SendText(sendfile);
end;
procedure TMain.ClientSocket1Connect(Sender: TObject;
Socket: TCustomWinSocket);
begin
Application.MessageBox('与监听端连接成功! ', '信息', MB_OK + MB_ICONinformation);
end;
我clientsocket连接很快,马上就提示成功,但是serversocket连接提示就很慢,要过2,3
分钟才提示?为什么?我改成下面也 不行:(
procedure TMain.ServerSocket1Accept(Sender: TObject;
Socket: TCustomWinSocket);
begin
Application.MessageBox('与监控端连接成功!!!!!!!!!!!!!! ', '信息', MB_OK + MB_ICONinformation);
end;
Socket: TCustomWinSocket);
begin
listen.label1.Caption := '与监控端连接成功!可以开始试验';
listen.button1.Caption := '关闭';
Application.MessageBox('与监控端连接成功! ', '信息', MB_OK + MB_ICONinformation);
socket.SendText(sendfile);
end;
procedure TMain.ClientSocket1Connect(Sender: TObject;
Socket: TCustomWinSocket);
begin
Application.MessageBox('与监听端连接成功! ', '信息', MB_OK + MB_ICONinformation);
end;
我clientsocket连接很快,马上就提示成功,但是serversocket连接提示就很慢,要过2,3
分钟才提示?为什么?我改成下面也 不行:(
procedure TMain.ServerSocket1Accept(Sender: TObject;
Socket: TCustomWinSocket);
begin
Application.MessageBox('与监控端连接成功!!!!!!!!!!!!!! ', '信息', MB_OK + MB_ICONinformation);
end;