Protocol Data Unit API¶
Should not be used by any client code. Is only used to describe how data is passed between the server and the client API
-
class
tgdb.pdu.
TGInputStream
¶ An input reader for converting from a uniform byte stream from the server to various Python objects.
Should probably not be used by any client code.
-
class
tgdb.pdu.
TGMessage
¶ Represents a message (either or to or from the server).
Should not be used by client code.
-
class
tgdb.pdu.
TGOutputStream
¶ A output writer for converting various Python objects to a uniform byte stream that the server can read. Should probably not be used by any client code.
-
class
tgdb.pdu.
TGSerializable
¶ Represents a serializable object.
Should not be used by client code.
-
class
tgdb.pdu.
VerbId
(value)¶ Server recognized verbs that describe what a message’s purpose is and therefore how to interpret it.
Should probably not be used by any client code.
-
classmethod
fromId
(id)¶ Get the verb corresponding to that id
- Parameters
id – the identifier used to find the corresponding verb
-
classmethod