Xymon Mailing List Archive search

Implement bb in perl

3 messages in this thread

list Joshua Gatcomb · Fri, 1 Aug 2008 10:09:25 -0400 ·
Salutations,
For an insane reason beyond my control, it would be advantageous to me to
re-implement the bb client executable (send single message to Hobbit) in
perl.

I have looked at bb.c which includes libbbgen.h which includes sendmsg.h etc
etc

While I know I could eventually get through all the C, it would be easier
for me if there was a design document explaining the client message format.
Then using the man page on bb, I could just implement it from scratch.

Does anyone know if alternatives to the compiled bb executable exist
(preferrably one in perl)?

Does anyone know if a design document that explains the message format or is
the source the reference?

Does anyone have any pointers for the best way to go through this exercise
of insanity?

Cheers,
Joshua Gatcomb
list Ralph Mitchell · Fri, 1 Aug 2008 09:35:46 -0500 ·
quoted from Joshua Gatcomb
On Fri, Aug 1, 2008 at 9:09 AM, Joshua Gatcomb <user-05d89a971c2a@xymon.invalid>wrote:
Salutations,
For an insane reason beyond my control, it would be advantageous to me to
re-implement the bb client executable (send single message to Hobbit) in
perl.

I have looked at bb.c which includes libbbgen.h which includes sendmsg.h
etc etc

While I know I could eventually get through all the C, it would be easier
for me if there was a design document explaining the client message format.
Then using the man page on bb, I could just implement it from scratch.

Does anyone know if alternatives to the compiled bb executable exist
(preferrably one in perl)?

Does anyone know if a design document that explains the message format or
is the source the reference?

Does anyone have any pointers for the best way to go through this exercise
of insanity?

Cheers,
Joshua Gatcomb
You could start with this:

   http://www.deadcat.net/download.php?fileid=155&filename=bb.pl&location=3

Ralph Mitchell
list T.J. Yang · Fri, 1 Aug 2008 09:53:36 -0500 ·
While I know I could eventually get through all the C, it would be easier for me if there was a design document explaining the client message format.  Then using the man page on bb, I could just implement it from scratch.
My attempt to turn Hb message protocol into formal BNF is not finished yet. 
I don't have a business need to get this done so it is in very slow pace. 

tj


Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008