wiki:DataProtocol

This page is obsolete. Please consult ProtocolZero.



















This page defines the Quagents3 datasream protocol.

The wiki:DataProtocol specifies the communication between the server and the client over the DataPort?, port 6001. This communication takes the form of a constant datastream, which is used to maintain updated data on certain queries. The updates simplify client commands, as the client does not need to constantly poll the server for data using query commands. The protocol does not require commands, as wiki:ProtocolZero. The server only writes to the stream, and the client only reads from the stream.

Setup

The server is notified of which queries need to be updated using a concatenation onto the "ready" command. The opcode and any parameters must be inserted followed by a ' ' for every desired updated command. This command is sent over the wiki:Protocol?

Examples

ready hc ac

ready rf 9999 180 0

Specification

The datastream is a constant stream of updates sent from the server to the client over the DataPort?. The protocol here is simple, a discrete update takes the form of

"[OPCODE] [DATALIST]", where DATALIST is an arbitrary list of data, corresponding to each OPCODE query.

Last modified 13 years ago Last modified on Jun 22, 2011 12:42:13 PM