|
The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024
|
|
[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
RE: Re: xAP over ethernet - here's how to write an input plugin.
- To: <ukha_d@xxxxxxx>
- Subject: RE: Re: xAP over ethernet - here's how to write an
input plugin.
- From: "Mark Harrison" <Mark.Harrison@xxxxxxx>
- Date: Wed, 14 Aug 2002 17:15:34 +0100
- Mailing-list: list ukha_d@xxxxxxx; contact
ukha_d-owner@xxxxxxx
- Reply-to: ukha_d@xxxxxxx
Patrick,
Excellent. I agree with all your recommendations (on the basis that I don't
see any downside, and you beat me to the first working application!)
Well done, mate.
I owe you (yet another) drink.
Any chance of you sending me your VB code off list - I'll add it to my
Outlook "how many messages" code and it'll save me some time this
evening :-)
M.
-----Original Message-----
From: PatrickLidstone [mailto:patrickl@xxxxxxx]
Sent: 14 August 2002 17:09
To: ukha_d@xxxxxxx
Subject: [ukha_d] Re: xAP over ethernet - here's how to write an input
plugin.
Success!
I have a xAP compliant(*) message broadcast from a trivial VB app on
desktop PC, routed through a hub to a rabbit with VFD. The VFD
displays the message.
(*)I suggest a couple of minor tweaks to the current incarnation of
the protocol
1) Use tags for the header items as well, to allow for future
extensions
2) Use "equals" instead of 0x0a as the name-value separator for
ascii
values because it's a hell of a lot easier to read when debugging.
3) Prefix "policy" headers with the letters xAP
4) No keyname is case sensitive
5) Use "!" as separator for name-values where value is binary.
Subsequent two bytes (HHLL) determine remaining packet length prior
to next key-value pair
ie.
- Get the content your want to transmit :-)
- Build the message as follows:
- Datasource
- ASCII 10
- Instance (should be user-configurable in the plugin setup)
- ASCII 10
- Keyname (plugin-specific)
- ASCII 10
- Keyvalue (plugin-specific)
- ASCII 10
(you can then repeat Key/Value pairs, but they MUST be paired)
The keyname "NetworkID" is reserved
- Open a TCP session
- Open a socket to 255.255.255.255 on port 1739
- Send the message on it
---- BECOMES -----
- Get the content your want to transmit :-)
- Build the message as follows:
xAP-source=<Datasource value><0x0A>
xAP-instance=<Instance value><0x0A>
Keyname=<Keyvalue> <Ox0A>
Keyname=<Keyvalue> <0x0A>
(you can then repeat Key/Value pairs, but they MUST be paired)
e.g.
xAP-source=Outlook<0x0A>
xAP-instance=Mark<0x0a>
unread=19<0x0a>
last subject=101 useful things to do with string<0x0a>
- Open a TCP session
- Open a socket to <broadcast address> (which almost certainly won't
be 255.255.255.255 in VB!) on port <port>
- Send the message on it
For more information: http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe: ukha_d-subscribe@xxxxxxx
Unsubscribe: ukha_d-unsubscribe@xxxxxxx
List owner: ukha_d-owner@xxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
Yahoo! Groups
Sponsor |
|
For more information: http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe: ukha_d-subscribe@xxxxxxx
Unsubscribe: ukha_d-unsubscribe@xxxxxxx
List owner: ukha_d-owner@xxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Home |
Main Index |
Thread Index
|
|