[hai-dev] More changes to the HAI sources

24 views
Skip to first unread message

Philip A. Prindeville

unread,
Apr 30, 2010, 2:11:19 AM4/30/10
to hai...@googlegroups.com
I was looking at what's required to make a Perl module of this, and from
what I can tell, two main obstacles are:

* the library probably shouldn't block waiting on data, but use
IO::Select() to figure out when data is ready to be read (easy with UDP,
non-trivial with TCP since Omnilink-II can have "short reads" on data...
we might need to add FIONBREAD when we add TCP/Omnilink-II support);

* since someone could conceivably set up a web-server that manages
several monitoring services simultaneously, we need the ability to have
a multiple connection instances simultaneously in the same address
space... i.e. no use of global variables.

That's all I can think of for now. What am I forgetting?




Rick Macdonald

unread,
Apr 30, 2010, 11:07:21 AM4/30/10
to HAI Omni Communication Library Developers
I've never used Google Groups before. I'm replying to the web
interface but is it OK to just reply to the email directly?

One thing I've had in the back of my mind but I've never looked at
closely, is that I think there is code in the hai.c main program that
is useful or required (initialization, etc) but is not in a library
function to call from another main or wrapper/interface.

Rick

On Apr 30, 12:11 am, "Philip A. Prindeville" <phil...@redfish-

Dax Kelson

unread,
Apr 30, 2010, 11:21:29 AM4/30/10
to hai...@googlegroups.com
On Fri, 2010-04-30 at 08:07 -0700, Rick Macdonald wrote:
> I've never used Google Groups before. I'm replying to the web
> interface but is it OK to just reply to the email directly?

Sure. That's what I'm doing now.

Dax

Philip Prindeville

unread,
Jun 18, 2010, 1:01:36 AM6/18/10
to hai...@googlegroups.com

BTW: I moved all the globals from hai.c into a container, to simplify
having an app maintain multiple connections in the future.

Committed it, but can't do the upstream put:

$ git push --all g...@gitorious.org:hai/hai.git
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
$

I'm missing something but can't figure out what.

What should the URL look like?

Thanks.

Rick Macdonald

unread,
Jun 18, 2010, 1:52:39 AM6/18/10
to hai...@googlegroups.com
Here are the instructions I was given:



-------- Original Message --------

On Sun, 2009-11-01 at 20:20 -0600, Chuck & Nicole Cannon wrote:
Just let me know where you put it and make sure I can easily 
contribute.
  

I've created a project on Gitorious.org and imported the source you just emailed.

The project URL is:

http://gitorious.org/hai

Chuck and Rick, please create an account on gitorious.org and then I'll add you to the "hai-developers" team/group (the owner of the project) as an Administrator.




Here is your git quick start guide.

If you haven't done so already, download and install Git.

Then:

git config --global user.name "Your full name"
git config --global user.email "your...@goeshere.com"

You can then pull down the the current trunk with:

git clone git://gitorious.org/hai/hai.git

Since you have commit privileges, redefine the "push" URL to the read-write URL with:

git remote rm origin  # delete existing definition
git remote add origin g...@gitorious.org:hai/hai.git
git push origin master

Now your ready to develop!

<make changes to the code>
git status # view the changes
git commit # commit your changes (locally)
git push # send your changes up gitorious.org

Git advanced features

* Local branches
* Amending/merging unpublished commits

For a concise walkthrough of git, take a look at:

http://cworth.org/hgbook-git/tour/





Philip Prindeville

unread,
Jun 18, 2010, 2:12:02 PM6/18/10
to hai...@googlegroups.com
Hmm....  no change:

[philipp@builder ~/hai]$ git config user.name "Philip Prindeville"
[philipp@builder ~/hai]$ git config user.email phi...@redfish-solutions.com
[philipp@builder ~/hai]$
[philipp@builder ~/hai]$ git remote rm origin
[philipp@builder ~/hai]$ git remote add origin g...@gitorious.org:hai/hai.git
[philipp@builder ~/hai]$ git push origin master

Permission denied (publickey).
fatal: The remote end hung up unexpectedly
[philipp@builder ~/hai]$


I'll try replacing my SSH public key.  Yup, that did it.

Same contents, but after deleting it and adding it back, things work.


Reply all
Reply to author
Forward
0 new messages