S
stpengpeng
Unregistered / Unconfirmed
GUEST, unregistred user!
客户端
mystream:=tmemorystream.Create;
myStream.Position:=0;
TCPClient.ReadStream(mystream,-1,false);
showmessage(inttostr(mystream.Position));
mystream.Read(tuser,sizeof(tuser));
showmessage(tuser.XXX);
服务器端
mystream:=tmemorystream.Create;
myStream.Position:=0;
mystream.WriteBuffer(tuser,sizeof(fuser));
athread.Connection.WriteStream(mystream,true,true,0);
这样写为什么CLIENT端收不到
mystream:=tmemorystream.Create;
myStream.Position:=0;
TCPClient.ReadStream(mystream,-1,false);
showmessage(inttostr(mystream.Position));
mystream.Read(tuser,sizeof(tuser));
showmessage(tuser.XXX);
服务器端
mystream:=tmemorystream.Create;
myStream.Position:=0;
mystream.WriteBuffer(tuser,sizeof(fuser));
athread.Connection.WriteStream(mystream,true,true,0);
这样写为什么CLIENT端收不到