Editing
Protocol
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Transactions= After the initial handshake, client and server communicate over the connection by sending and receiving ''transactions''. Every transaction contains description (request) and/or status (reply) of the operation that is performed, and parameters used for that specific operation. A transaction begins with the following header: {| class="article-table" !Description !Size !Data !Note |- |Flags |1 |0 |Reserved (should be 0) |- |Is reply |1 |0 or 1 |Request (0) or reply (1) |- |Type |2 | |Requested operation (user defined). 0 for reply |- |ID |4 |Not 0 |Unique transaction ID (must not be 0) |- |Error code |4 | |Used in the reply (user defined, 0 = no error) |- |Total size |4 | |Total data size for the transaction (all parts) |- |Data size |4 | |Size of data in this transaction part This allows splitting large transactions into smaller parts |} Immediately following the header is optional transaction data. Data part contains ''transaction parameters''. When these parameters are used, data part starts with the field containing the number of parameters in the parameter list: {| class="article-table" !Description !Size !Note |- |Number of parameters |2 |Number of the parameters for this transaction |- |Parameter list… |} Parameter list contains multiple records with the following structure: {| class="article-table" !Description !Size !Note |- |Field ID |2 |- |Field size |2 |Size of the data part |- |Field data… |size |Actual field content |} Every field data format is based on the field type. Currently, there are only 3 predefined field data types: integer, string and binary.
Summary:
Please note that all contributions to Hotline Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
HL Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Home
Clients
Servers
Trackers
Development
Recent Changes
discord
Our Discord(BNETcc)
Macintosh Garden
partners
Macintosh Garden
BNET.cc
Moghouse
Tools
What links here
Related changes
Special pages
Page information