Trying to test starsync

22 views
Skip to first unread message

Kyle Bateman

unread,
Jun 19, 2011, 2:25:07 PM6/19/11
to sta...@googlegroups.com, Steve Landers
On 6/14/11 6:19 PM, Steve Landers wrote:
> Would you mind taking this to a public forum such as comp.lang.tcl or the Starkit list at http://groups.google.com/group/starkit ?
Yup, no problem.
>> In playing with sdx/starkits so far, I found the starsync module and could get a client starkit to ask a server for updates. It looks like it is wrapping its request in an http transaction and expecting a web server to handle its request via cgi. Neither of the example servers referenced in update.tcl seemed to be alive (mini.net or equi4.com) and/or willing to handle a sync.cgi request. So I was having trouble figuring out what such a server needs to send in return.
>>
>> Do you know if there is an example server somewhere? I read somewhere that the same starsync module is both server and client, but haven't been able to figure that part out yet. Is that part of tclhttpd or something?
So after your pointer to the mailing lists, I have read a little more
and it it looks like to me that I should probably do something like:

On the client side: sdx update
And on the server side: sdx starsync

So presumably, I could embed the equivalent of those commands into my
server and client applications to do the automatic updating I want.

This week has been busy and I haven't gotten back to try a test on this
yet but I will. A few questions to help me get started:
- Am I on the right track?
- Is the server side meant to stand alone? Or is it supposed to be set
up as a cgi script under a web server?
- Is there already a reference example or tutorial somewhere for this?

Kyle


Steve Landers

unread,
Jun 19, 2011, 7:53:41 PM6/19/11
to Kyle Bateman, sta...@googlegroups.com

On 20/06/2011, at 2:25 AM, Kyle Bateman wrote:

> On 6/14/11 6:19 PM, Steve Landers wrote:
>> Would you mind taking this to a public forum such as comp.lang.tcl or the Starkit list at http://groups.google.com/group/starkit ?
> Yup, no problem.
>>> In playing with sdx/starkits so far, I found the starsync module and could get a client starkit to ask a server for updates. It looks like it is wrapping its request in an http transaction and expecting a web server to handle its request via cgi. Neither of the example servers referenced in update.tcl seemed to be alive (mini.net or equi4.com) and/or willing to handle a sync.cgi request. So I was having trouble figuring out what such a server needs to send in return.
>>>
>>> Do you know if there is an example server somewhere? I read somewhere that the same starsync module is both server and client, but haven't been able to figure that part out yet. Is that part of tclhttpd or something?
> So after your pointer to the mailing lists, I have read a little more and it it looks like to me that I should probably do something like:
>
> On the client side: sdx update
> And on the server side: sdx starsync
>
> So presumably, I could embed the equivalent of those commands into my server and client applications to do the automatic updating I want.
>
> This week has been busy and I haven't gotten back to try a test on this yet but I will. A few questions to help me get started:
> - Am I on the right track?

Yes

> - Is the server side meant to stand alone? Or is it supposed to be set up as a cgi script under a web server?

Both are possible

> - Is there already a reference example or tutorial somewhere for this?

I suggest you take a look at the Starkit paper at hhttp://equi4.com/papers/skpaper1.html and in particular the section on Starsync at http://equi4.com/papers/skpaper7_2.html and also Setting up a Starsync Server at http://equi4.com/papers/skpaper7_3.html

Steve

Kyle Bateman

unread,
Jun 22, 2011, 4:03:52 PM6/22/11
to sta...@googlegroups.com, Steve Landers
On 6/19/11 4:53 PM, Steve Landers wrote:
>> - Is the server side meant to stand alone? Or is it supposed to be set up as a cgi script under a web server?
> Both are possible
>
>> - Is there already a reference example or tutorial somewhere for this?
> I suggest you take a look at the Starkit paper at hhttp://equi4.com/papers/skpaper1.html and in particular the section on Starsync at http://equi4.com/papers/skpaper7_2.html and also Setting up a Starsync Server at http://equi4.com/papers/skpaper7_3.html
>
I have gone through that tutorial trying to get a server set up with
both apache and tclhttpd. I think in each case, I'm probably having
some technical issues with the web server setup. In short, I haven't
gotten it running yet but I'm' still fiddling with it.

In the mean time, I'm really more interested in getting it to run
stand-alone (without a web server involved). Any hints on getting that
going?

I tried running: sdx starsync

Is that supposed to open up a socket that I can direct the "sdx update"
to talk to using the -from switch?

Kyle

keb

unread,
Jun 21, 2011, 5:36:42 PM6/21/11
to starkit

>
> > - Is the server side meant to stand alone?  Or is it supposed to be set up as a cgi script under a web server?  
>
> Both are possible
>
> > - Is there already a reference example or tutorial somewhere for this?
>
> I suggest you take a look at the Starkit paper at hhttp://equi4.com/papers/skpaper1.htmland in particular the section on Starsync athttp://equi4.com/papers/skpaper7_2.htmland also Setting up a Starsync Server athttp://equi4.com/papers/skpaper7_3.html
>

Thanks for the pointers. Is there one to show how to do it stand-
alone (without a web server)?
Reply all
Reply to author
Forward
0 new messages