Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#9

AW: TIdTCPServer Byte Packets (Indy10)

  Alt 29. Okt 2011, 16:17
Code:
All packets begin with a single "Packet ID" byte. Listed packet size includes this byte. Packets are either "server to client", "client to server", or both. If not specified, assume that the packet can be sent both ways. There is no "length" field; for variable length packets, you must parse to the end to determine the length.
Wenn ich das richtig interpretiere:

Paketaufbau:
Id - Byte
Size - Byte
Data - Array of char

Size beinhaltet die Gesamtlänge des Paketes.
Wenn DArc übertragen wird sollte Size dann 6 sein.

Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat