C
carem1
Unregistered / Unconfirmed
GUEST, unregistred user!
最终的原因已经找到了,所以我编辑了一下贴子~!!
procedure Tform1.N12Click(Sender: TObject); //锁定
begin
if clientsocket1.Active then clientsocket1.Active:=false;
ClientSocket1.Address :=selectip;
Clientsocket1.Active :=true;
ClientSocket1.open;
showmessage('已连接服务端');
ClientSocket1.Socket.SendText('lockuser');
end;
为什么总要showmessage server才可以收到sendtext里面的命令??
我察看过资料。是因为阻塞方式的问题。请问如何解决?放在connect里面不行~!!!
procedure Tform1.N12Click(Sender: TObject); //锁定
begin
if clientsocket1.Active then clientsocket1.Active:=false;
ClientSocket1.Address :=selectip;
Clientsocket1.Active :=true;
ClientSocket1.open;
showmessage('已连接服务端');
ClientSocket1.Socket.SendText('lockuser');
end;
为什么总要showmessage server才可以收到sendtext里面的命令??
我察看过资料。是因为阻塞方式的问题。请问如何解决?放在connect里面不行~!!!