Shavrov Sh-2 Просмотр ZIP-архива

SH2_1_7/plugins/doc/netprops.txt

NETWORKED PROPERTIES
====================

Networked properties is network protocol which allows to get and set
properties values over network.   Property is named typed value.
Property with the same name but different type treated as different
properties.

Typical session includes connection setup, property subscription,
cycles of receiving properties values, setting properties and finally
subscription canceling.

Transport protocol is TCP.


0. CONNECTION SETUP
-------------------

In order to setup connection client should establish TCP connection to
server and send string 'NP1\n' without quotes, \n is carriedge
return character.

In response server will send the same characters back and random
sequence of 16 bytes.  Client should calculate MD5 checksum over them
and password, and send result to server.  If authentication will be
OK, server will send word PASS or DENY otherwise and close connetion
immediatelly.


1. SUBSCRIPTION
---------------

Subscription to property has following format:

Field         Size      Description
============= ========= ============================
command       1 byte    equals to 0x01 or 0x05
type          1 byte    type of property
id            1 byte    unique property ID
size          1 byte    length of property name
name          size      property name

Server doesn't return anything in reply, but value of property should
be sent on next update command.

If commands equals to 0x05 and proerty doesn't exists, it will be created.

Allowed properties types are:  

Code  C++ Name   Description
===== ========== =====================================
1     int        32 bit signed integer in network order
2     float      IEEE float
3     double     IEEE double


2. SET PROPERTY VALUE
---------------------

In order to set property value client have to sent following packet:

Field         Size      Description
============= ========= ============================
command       1 byte    equals to 0x02
id            1 byte    property ID
type          1 byte    type of property
serial        2 bytes   number of set request
data          variable  property value

Each set request has serial number.  It must equals to previous set request
serial number plus one.  First set request must have serial number equals 
to 1.  After request number 0xFFFF next request will be 0x0000.

Data format depends on property type.  For integer properties it is 4-bytes
integer in network byte order.  Float and Double properties transfered
in corresponding IEEE formats.

Server will not reply for set property message but it will send property
new value on next update.


3. GET PROPERTIES VALUES
------------------------

Server sends values of all changed properties after get values request.
Get values request consists of single byte equals to 0x03:

Field         Size      Description
============= ========= ============================
command       1 byte    equals to 0x03

Response to this command consist of header and properties data:

Field         Size      Description
============= ========= ============================
command       1 byte    equals to 0x04
count         1 byte    number of properties in reply
serial        2 bytes   last seen set seral number
data          variable  properies values

Each reply has last seen set property number.  If there are wasn't any set
property requests yet serial number equals to 0.

Each property sent in following format:

Field         Size      Description
============= ========= ============================
id            1 byte    property ID
data          variable  property value

data format depends on property type.  For integer properties it is 4-bytes
integer in network byte order.  Float and Double properties transfered
in corresponding IEEE formats.  Type is always the same as in property
subscription request.


34119-SH2-1-7-ru.ZIP

Имя файла Дата Размер
SH2_1_7/ 03.06.2010 16:54
SH2_1_7/airfoils/ 02.06.2010 22:09
SH2_1_7/airfoils/Clark-Y (good propeller).afl 20.09.2009 18:05 24 KB
SH2_1_7/airfoils/NACA 0006 (symmetrical).afl 20.09.2009 18:05 24 KB
SH2_1_7/airfoils/NACA 16 (good propeller).afl 20.09.2009 18:05 24 KB
SH2_1_7/airfoils/Shavrov_Sh2.afl 03.04.2009 16:22 25 KB
SH2_1_7/avionics.lua 31.05.2010 17:24 2 KB
SH2_1_7/changes.txt 02.06.2010 22:06 294 B
SH2_1_7/cockpit/ 02.06.2010 22:09
SH2_1_7/cockpit/-PANELS-/ 02.06.2010 22:09
SH2_1_7/cockpit/-PANELS-/panel.png 22.05.2010 18:28 8 KB
SH2_1_7/Custom Avionics/ 02.06.2010 22:09
SH2_1_7/Custom Avionics/aircraft_logic.lua 05.06.2010 02:38 10 KB
SH2_1_7/Custom Avionics/clickable.png 02.11.2009 21:44 3 KB
SH2_1_7/Custom Avionics/p2_switch.png 13.11.2009 01:07 8 KB
SH2_1_7/Custom Avionics/panel_logic.lua 28.05.2010 17:38 914 B
SH2_1_7/Custom Avionics/save_position.lua 18.06.2010 21:52 12 KB
SH2_1_7/Custom Avionics/selector.png 13.11.2009 18:25 9 KB
SH2_1_7/Custom Avionics/selector_2.png 13.11.2009 19:10 9 KB
SH2_1_7/Custom Avionics/starter_button.png 13.11.2009 16:15 6 KB
SH2_1_7/Custom Avionics/switches_panel.lua 31.05.2010 19:57 15 KB
SH2_1_7/Custom Avionics/switches_panel.png 31.05.2010 19:24 130 KB
SH2_1_7/Custom Avionics/textureLitSoft.lua 07.01.2010 15:52 228 B
SH2_1_7/Custom Avionics/vinet.lua 21.02.2010 20:56 1 KB
SH2_1_7/Custom Avionics/vinet.png 01.02.2010 19:50 163 KB
SH2_1_7/liveries/ 02.06.2010 22:09
SH2_1_7/liveries/RedCross/ 02.06.2010 22:09
SH2_1_7/liveries/RedCross/objects/ 02.06.2010 22:09
SH2_1_7/liveries/RedCross/objects/engine.png 02.06.2010 20:52 2 MB
SH2_1_7/liveries/RedCross/objects/fuzel.png 07.04.2009 20:44 2 MB
SH2_1_7/liveries/RedCross/objects/other.png 07.04.2009 15:19 1 MB
SH2_1_7/liveries/RedCross/objects/wing_l.png 07.04.2009 15:41 2 MB
SH2_1_7/liveries/RedCross/objects/wing_r.png 07.04.2009 16:34 2 MB
SH2_1_7/liveries/RedCross/Sh2_prop.png 07.04.2009 17:33 17 KB
SH2_1_7/objects/ 02.06.2010 22:09
SH2_1_7/objects/cock.png 02.06.2010 15:59 2 MB
SH2_1_7/objects/compas.obj 28.05.2010 23:53 35 KB
SH2_1_7/objects/compas.png 21.05.2010 23:19 459 KB
SH2_1_7/objects/compas_en.obj 28.05.2010 23:53 35 KB
SH2_1_7/objects/compas_en_LIT.png 01.06.2010 19:38 27 KB
SH2_1_7/objects/compas_LIT.png 01.06.2010 19:38 28 KB
SH2_1_7/objects/ENGINE.obj 02.06.2010 17:57 3 MB
SH2_1_7/objects/engine.png 02.06.2010 20:52 2 MB
SH2_1_7/objects/FUZEL.obj 02.06.2010 17:57 581 KB
SH2_1_7/objects/fuzel.png 02.06.2010 15:57 2 MB
SH2_1_7/objects/gauges.obj 02.06.2010 16:03 113 KB
SH2_1_7/objects/gauges.png 30.05.2010 02:56 838 KB
SH2_1_7/objects/gauges_en.obj 02.06.2010 16:05 109 KB
SH2_1_7/objects/gauges_en.png 27.05.2010 03:01 831 KB
SH2_1_7/objects/gauges_en_LIT.png 01.06.2010 19:36 143 KB
SH2_1_7/objects/gauges_LIT.png 01.06.2010 20:08 177 KB
SH2_1_7/objects/glass.obj 02.06.2010 17:57 32 KB
SH2_1_7/objects/glass.png 20.05.2010 22:07 596 KB
SH2_1_7/objects/OTHER.obj 02.06.2010 17:57 1 MB
SH2_1_7/objects/other.png 06.04.2009 18:38 1 MB
SH2_1_7/objects/panel_m.obj 28.05.2010 23:44 52 KB
SH2_1_7/objects/panel_m.png 12.05.2009 23:15 473 KB
SH2_1_7/objects/pilot.png 23.05.2009 20:39 685 KB
SH2_1_7/objects/salon.obj 02.06.2010 21:12 1 MB
SH2_1_7/objects/tires.obj 02.06.2010 17:57 197 KB
SH2_1_7/objects/tires.png 04.04.2009 14:19 329 KB
SH2_1_7/objects/toolbox.obj 05.04.2009 19:03 248 KB
SH2_1_7/objects/toolbox.png 08.04.2009 16:29 481 KB
SH2_1_7/objects/WING_L.obj 02.06.2010 17:57 549 KB
SH2_1_7/objects/wing_l.png 08.04.2009 16:31 2 MB
SH2_1_7/objects/WING_R.obj 02.06.2010 17:57 540 KB
SH2_1_7/objects/wing_r.png 08.04.2009 16:31 2 MB
SH2_1_7/pilot.png 08.04.2009 00:17 685 KB
SH2_1_7/plugins/ 02.06.2010 22:09
SH2_1_7/plugins/doc/ 02.06.2010 22:09
SH2_1_7/plugins/doc/ChangeLog.txt 10.06.2009 02:37 2 KB
SH2_1_7/plugins/doc/gpl-3.0.txt 10.06.2009 02:37 34 KB
SH2_1_7/plugins/doc/netprops.txt 10.06.2009 02:37 4 KB
SH2_1_7/plugins/doc/README.txt 10.06.2009 02:37 142 B
SH2_1_7/plugins/xap/ 02.06.2010 22:09
SH2_1_7/plugins/xap/data/ 02.06.2010 22:09
SH2_1_7/plugins/xap/data/components/ 02.06.2010 22:09
SH2_1_7/plugins/xap/data/components/button.lua 10.06.2009 02:37 412 B
SH2_1_7/plugins/xap/data/components/clickable.lua 10.06.2009 02:37 99 B
SH2_1_7/plugins/xap/data/components/clickable.png 10.06.2009 02:37 250 B
SH2_1_7/plugins/xap/data/components/close.png 10.06.2009 02:37 399 B
SH2_1_7/plugins/xap/data/components/digits-tape-bg.png 10.06.2009 02:37 248 B
SH2_1_7/plugins/xap/data/components/digits-tape.png 10.06.2009 02:37 1 KB
SH2_1_7/plugins/xap/data/components/digitstape.lua 10.06.2009 02:37 2 KB
SH2_1_7/plugins/xap/data/components/frame.lua 10.06.2009 02:37 73 B
SH2_1_7/plugins/xap/data/components/free_texture.lua 10.06.2009 02:37 281 B
SH2_1_7/plugins/xap/data/components/lamp.lua 10.06.2009 02:37 521 B
SH2_1_7/plugins/xap/data/components/needle-top.png 10.06.2009 02:37 207 B
SH2_1_7/plugins/xap/data/components/needle.lua 10.06.2009 02:37 378 B
SH2_1_7/plugins/xap/data/components/needle.tga 10.06.2009 02:37 3 KB
SH2_1_7/plugins/xap/data/components/none.png 10.06.2009 02:37 178 B
SH2_1_7/plugins/xap/data/components/rectangle.lua 10.06.2009 02:37 161 B
SH2_1_7/plugins/xap/data/components/rotary.lua 10.06.2009 02:37 1 KB
SH2_1_7/plugins/xap/data/components/rotary.png 10.06.2009 02:37 1 KB
SH2_1_7/plugins/xap/data/components/rotated_tape.lua 10.06.2009 02:37 488 B
SH2_1_7/plugins/xap/data/components/rotateleft.png 10.06.2009 02:37 215 B
SH2_1_7/plugins/xap/data/components/rotateright.png 10.06.2009 02:37 232 B
SH2_1_7/plugins/xap/data/components/switch.lua 10.06.2009 02:37 723 B
SH2_1_7/plugins/xap/data/components/tape.lua 10.06.2009 02:37 411 B
SH2_1_7/plugins/xap/data/components/texture.lua 10.06.2009 02:37 135 B
SH2_1_7/plugins/xap/data/components/textureLit.lua 10.06.2009 02:37 184 B
SH2_1_7/plugins/xap/data/components/togglePanelButton.lua 10.06.2009 02:37 480 B
SH2_1_7/plugins/xap/data/components/white-digits.png 10.06.2009 02:37 1 KB
SH2_1_7/plugins/xap/data/scripts/ 02.06.2010 22:09
SH2_1_7/plugins/xap/data/scripts/init.lua 03.02.2010 15:02 22 KB
SH2_1_7/plugins/xap/lin.xpl 10.03.2010 21:57 2 MB
SH2_1_7/plugins/xap/mac.xpl 09.03.2010 21:48 801 KB
SH2_1_7/plugins/xap/win.xpl 24.02.2010 23:36 589 KB
SH2_1_7/SH2.acf 02.06.2010 18:00 2 MB
SH2_1_7/sh2_cockpit_inn.obj 02.06.2010 21:16 9 KB
SH2_1_7/sh2_cockpit_OUT.obj 30.05.2010 02:44 488 KB
SH2_1_7/sh2_icon.png 02.06.2010 21:43 115 KB
SH2_1_7/Sh2_prop.png 21.05.2010 15:51 59 KB
SH2_1_7/Shavrov Sh-2 manual RU.pdf 03.06.2010 16:50 3 MB
SH2_1_7/Shavrov Sh-2 manual.pdf 02.06.2010 21:33 3 MB
SH2_1_7/sounds/ 02.06.2010 22:09
SH2_1_7/sounds/alert/ 02.06.2010 22:09
SH2_1_7/sounds/alert/dash_MIDDLE.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/alert/dash_MORSE.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/alert/dash_OUTER.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/alert/dot_INNER.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/alert/dot_MIDDLE.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/alert/dot_MORSE.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/engine/ 02.06.2010 22:09
SH2_1_7/sounds/engine/Sh2 engn1_inn.wav 01.06.2010 17:34 2 MB
SH2_1_7/sounds/engine/Sh2 engn1_OUT.wav 01.06.2010 17:45 3 MB
SH2_1_7/sounds/engine/Sh2 prop1_INN.wav 08.01.2010 22:29 1 MB
SH2_1_7/sounds/engine/Sh2 prop1_OUT.wav 18.11.2009 21:29 1 MB
SH2_1_7/sounds/systems/ 02.06.2010 22:09
SH2_1_7/sounds/systems/avionics.wav 10.04.2009 18:56 43 KB
SH2_1_7/sounds/systems/sh2 gear.wav 10.04.2009 18:28 1 MB
SH2_1_7/sounds/weather/ 02.06.2010 22:09
SH2_1_7/sounds/weather/wind.wav 01.06.2010 18:11 600 KB
avsim_su.diz 20.11.2010 15:19 406 B
Итого: 55 MB
Archive contains the model of the Shavrov Sh-2 amphibian plane for X-Plane version 9.5+. Included SASL plug-in (author of SASL plug-in is Alexander 'asso' Babichev, plug-in distributed under terms of GPL 3.0 license)
→ Size: 41 MB
→ Date: 15 years ago (20.11.2010 12:59)
→ Author: Денис Крупин (ddenn)
→ Uploaded by: -=DeN=- (uploaded 2 files )
→ Approved by moderator: omega
→ License: Freeware - Free version, Unlimited Distribution
→ Downloaded: 1680 time(s)