S
syy_sxd
Unregistered / Unconfirmed
GUEST, unregistred user!
socket客户端
TSendInfo=record
data1:int;
data2:int64;
data3:string[6];
end;
sendrecord:TSendInfo;
sendrecord.data1:=1;
sendrecord.data2:=2;
sendrecord.data3:='HLJ4';
ClientSocket.Socket.SendBuf(SendRecord,sizeof(sendrecord));
socket服务器端
buf:array[0..300] of char;
socket..ReceiveBuf(buf,socket..ReceiveLength);
而buf的内容是
buf=('#1,#0,#0,#0,,#2,#0,#0,#0,#0,#4,'H','L','J','4',#0,#0')
这里的#4,是HLJ4的长度吧,怎么能让接受的缓冲里的'#4',不要发送到服务器端呢
请指教
TSendInfo=record
data1:int;
data2:int64;
data3:string[6];
end;
sendrecord:TSendInfo;
sendrecord.data1:=1;
sendrecord.data2:=2;
sendrecord.data3:='HLJ4';
ClientSocket.Socket.SendBuf(SendRecord,sizeof(sendrecord));
socket服务器端
buf:array[0..300] of char;
socket..ReceiveBuf(buf,socket..ReceiveLength);
而buf的内容是
buf=('#1,#0,#0,#0,,#2,#0,#0,#0,#0,#4,'H','L','J','4',#0,#0')
这里的#4,是HLJ4的长度吧,怎么能让接受的缓冲里的'#4',不要发送到服务器端呢
请指教