MYTH PROTO VERSION (Myth Protocol)
From MythTV Official Wiki
Revision as of 19:06, 16 December 2009 by Wagnerrp (talk | contribs) (moved Myth Protocol Command MYTH PROTO VERSION to Myth Protocol/Commands/MYTH PROTO VERSION: organizing...)
MYTH_PROTO_VERSION
Arguments
Command arguments: <client protocol version>
List arguments: none
Examples
Command:
21 MYTH_PROTO_VERSION 26
Response:
13 ACCEPT[]:[]26
Description
If the version number given matches the protocol version number spoken by the server, the command will succeed. Otherwise, the command will fail. This should always be the first command sent by a client when it connects to insure that it will be understood by the server.
Returns
Successful response:
ACCEPT[]:[]<server protocol version>
Unsuccessful response:
REJECT[]:[]<server protocol version>
Telnet
A nice way of testing this is with telnet. Type the following command into a console window on the machine with mythbackend running on it:
telnet localhost 6543
And you should see the following information:
Trying localhost... Connected to localhost. Escape character is '^]'.
Now copy and paste the MYTH_PROTO_VERSION command in exactly, hit return and you should see mythbackend respond with either accept or reject.
21 MYTH_PROTO_VERSION 40 13 ACCEPT[]:[]40