C
cjfandhf
Unregistered / Unconfirmed
GUEST, unregistred user!
为了测试服务器,我动态创建了clientsocket 1000个,我怎么1000个都响应onconnect事件,参数给怎样填写
现有一个
procedure Tfrmtcpclient.ClientSocket1Connect(Sender: TObject;
Socket: TCustomWinSocket);
begin
socket.SendText ('login ok');
end;
下面是1000个控件事件复制:
for ..........
clientsocket.OnConnect:=clientsocket1connect( ?????????????)
?该怎样写?
现有一个
procedure Tfrmtcpclient.ClientSocket1Connect(Sender: TObject;
Socket: TCustomWinSocket);
begin
socket.SendText ('login ok');
end;
下面是1000个控件事件复制:
for ..........
clientsocket.OnConnect:=clientsocket1connect( ?????????????)
?该怎样写?