[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [coldsync-hackers] Re: Redux: Netsync + [X]inetd



> I just e-mailed you original PConnection_net.c and my version ( you
> can run diff if you want ) What my does is exactly what I was
> talking about - UDP is not used, than in net_tcp_listen it accept()s
> connections and fork()s child processes to do actual NetSync and
> then parent waits to accept new ones.
> Works good for me - should do the trick for everybody else.  As I
> said, changes are quite minimal - see net_tcp_listen() function It
> is quite classical Unix forking server.

OK,
while I understand the theory and practice, I'm not strong enough in C or
familiar enough w/ the source to have done this in anything like the time
that would have been practical (altho, if coldsync was in Perl... :-)

I took your PConnection_net.c (which started as v 1.18), and put it into the
2.2.5 tree (which uses v1.22).  Whether or not UDP is used, it seems to
respond correctly to the UDP wakeup packets sent by my copy of POSE, and
then forks as promised, ready to take requests.  pi-csd was NOT required.

I used this commandline:
src/coldsync -md -t net -dmisc:5 -dio:5 -dsync:5 -
(the - at the end is a little weird, w/o it coldsync exits w/ "Missing
/dev/palm", yet nowhere does it actually utilize STDIN. :-)

First of all, THANK YOU!  (I really needed this)

Second of all, I intend to integrate your changes into the 2.2.5 version of
PConnetion_net.c v1.22 (and maybe into the 2.3.0 snapshot, but that's WORSE
for netsyncs than 2.2.5) and put up a patch... this way everybody can
benefit.

Andrew: I really liked what Fransico did w/ the multi-user patch creating a
different user directory automatically based on the Palm username.  While
your rebuttal to the approach was valid, the two different points of view
represent two entirely different solution sets, for different situations.
So, might I suggest a cmdline switch or even an option in the 'listen net
{}' block of coldsync.conf, to reflect the differences?

L8r,
Rob

#!/usr/bin/perl -w
use Disclaimer qw/:standard/;



-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.