X
xgydelphi
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了个双机通讯的程序
用serversocket,clientsocket
threadblocking方式,use socketstream
在serverclientthread.clientexecute中
if socketstream.waitfordata(60000)
begin
if socketstream.read(data,sizeof(data))<>0 then
..
end;
data有值,而read返回0
why?
用serversocket,clientsocket
threadblocking方式,use socketstream
在serverclientthread.clientexecute中
if socketstream.waitfordata(60000)
begin
if socketstream.read(data,sizeof(data))<>0 then
..
end;
data有值,而read返回0
why?