N
nhlong320
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大侠,在下做的程序要实现接受IDs这条指令,它的command是12 11 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 2B F0,那位大侠给小弟执教一下,在下程序不对
procedure TchatForm.ClientSocketRead(Sender: TObject;
Socket: TCustomWinSocket);
var
Buffer: PChar;
begin
Memo.Lines.Add(Socket.ReceiveText);
Socket.ReceiveBuf(12 11 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 2B F0, Socket.ReceiveLength);
end;
procedure TchatForm.ClientSocketRead(Sender: TObject;
Socket: TCustomWinSocket);
var
Buffer: PChar;
begin
Memo.Lines.Add(Socket.ReceiveText);
Socket.ReceiveBuf(12 11 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 2B F0, Socket.ReceiveLength);
end;