lolo:~/ lodewijk$ telnet 127.0.0.1 1234
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<patch>
<make-module-req type="MoviePlayer" id="mp1" />
</patch>
<patch>
<make-module-rsp />
</patch>
<patch>
<set-attribute-req moduleid="mp1" name="file" value="file:///Users/lodewijk/Movies/movie.mov" />
</patch>
<patch>
<set-attribute-rsp />
</patch>
<patch>
<connect-req frommodule="mp1" output="image out" tomodule="OutputWindow1" input="image in" />
</patch>
<patch>
<connect-rsp />
</patch>
A full listing of the xml protocol can be found in the Waag OSS license statement.
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Initial Developer of the Original Code is "Waag Society / for old and new media"
Portions created by the Initial Developer are Copyright (C) 2004
the Initial Developer. All Rights Reserved.
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
patch:
all requests and responses should be enclosed by a "patch"-tag. For example:
<patch>
<make-module-req type="string" id="string"/>
</patch>
request:
<make-module-req type="string" id="string"/>
response:
<make-module-rsp />
negative response:
<make-module-nrsp reason="string"/>
request:
<delete-module-req id="string"/>
repsonse:
<delete-module-rsp/>
negative response:
<delete-module-nrsp reason="string"/>
request:
<connect-req frommodule="string" output="string" tomodule="string" input="string"/>
repsonse:
<connect-rsp/>
negative response:
<connect-nrsp reason="string"/>
request:
<disconnect-req tomodule="string" input="string"/>
repsonse:
<disconnect-rsp/>
negative response:
<disconnect-nrsp reason="string"/>
request:
<set-input-req moduleid="string" input="string" value="float"/>
repsonse:
<set-input-rsp/>
negative response:
<set-input-nrsp reason="string"/>
request:
<set-attribute-req moduleid="string" name="string" value="string"/>
repsonse:
<set-attribute-rsp/>
negative repsonse:
<set-attribute-nrsp reason="string"/>
request:
<set-active-req moduleid="string" value="boolean"/>
repsonse:
<set-active-rsp/>
negative repsonse:
<set-active-nrsp reason="string"/>
request:
<get-patch-req/>
response:
<get-patch-rsp/>
negative repsonse:
<get-patch-nrsp/>
request:
<clear-patch-req/>
response:
<clear-patch-rsp/>
negative repsonse:
<clear-patch-nrsp/>
control:
all requests and responses should be enclosed by a "control"-tag. For example;
<control>
<get-moduledeflist-req/>
</control>
request:
<get-moduledeflist-req/>
repsonse:
<get-moduledeflist-rsp>
<module type="string">
<!-- moduledef -->
</module>
<module type="string">
<!-- moduledef -->
</module>
<module type="string">
<!-- moduledef -->
</module>
</get-moduledeflist-rsp>
negative response:
<get-moduledeflist-nrsp/>
request:
<!-- set the n-th created output to a window (stream and file to be implemented later) -->
<set-imageoutput-req nr="string" >
<window hsize="string" vsize="string" hpos="string" vpos="string" />
</set-imageoutput-req >
response:
<set-imageoutput-rsp/>
negative response:
<set-imageoutput-nrsp/>
request:
<!-- legal value's for level:
none
error
warning
message
verbose
debug
-->
<set-loglevel-req level="debug" />
response:
<set-loglevel-rsp/>
negative response:
<set-loglevel-nrsp/>