2013-01-21 13:28:14 +01:00
|
|
|
TODO
|
|
|
|
----
|
|
|
|
|
|
|
|
Overview
|
|
|
|
========
|
|
|
|
|
|
|
|
The protocol is a UTF-8 line based bidirectional protocol were a slave sends
|
|
|
|
a method with optional argument to the master and a result of operation is
|
|
|
|
returned to the slave in a synchronous send recv operation.
|
|
|
|
|
|
|
|
|
|
|
|
A method call from Slave to the Master have the following syntax:
|
|
|
|
|
|
|
|
METHOD [ARG1[ ARG2 [...]]]
|
|
|
|
|
2017-10-28 23:24:23 +02:00
|
|
|
Argument string sent for a method call should be escaped as described below under
|
2013-01-21 13:28:14 +01:00
|
|
|
String escaping section.
|
|
|
|
|
|
|
|
|
|
|
|
A result from Master to the Slave have the following syntax:
|
|
|
|
|
|
|
|
"OK" || "ERROR" <CODE>
|
|
|
|
|
|
|
|
Result CODE is specific to the method implementation except for 0xffffffff which
|
|
|
|
is internal to the protocol and means that method does not exist.
|
|
|
|
|
|
|
|
|
|
|
|
One line may not exceed 1024 bytes, including newline.
|
|
|
|
|
|
|
|
|
|
|
|
String escaping
|
|
|
|
===============
|
2017-10-28 23:24:23 +02:00
|
|
|
Percentage sign has been chosen as escaping character.
|
2013-01-21 13:28:14 +01:00
|
|
|
|
|
|
|
The rules for escaping are:
|
|
|
|
|
|
|
|
Characters < 32 and % are escaped to %xx where xx is the byte value of the
|
|
|
|
escaped character.
|
|
|
|
|
|
|
|
|
|
|
|
Implemented methods
|
|
|
|
=======================
|
|
|
|
|
|
|
|
seamless.spawn
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Spawns a new windows command in the current seamless channel of the master.
|
|
|
|
|
|
|
|
Syntax:
|
|
|
|
seamless.spawn <COMMANDLINE>
|
|
|
|
|
|
|
|
Spawns a seamless process in the current seamless channel of the master with COMMANDLINE.
|
|
|
|
|
|
|
|
Errorcodes:
|
|
|
|
|
|
|
|
0x1 Master does not have a seamless rdp channel established.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|