[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [coldsync-hackers] development
- To: <coldsync-hackers at lusars dot net>
- Subject: RE: [coldsync-hackers] development
- From: "Rob Bloodgood" <robb at empire2 dot com>
- Date: Thu, 18 Jul 2002 15:40:27 -0700
- Importance: Normal
- In-reply-to: <20020718112239.E6917@baa.ooblick.com>
- Reply-To: coldsync-hackers at lusars dot net
- Sender: owner-coldsync-hackers at lusars dot net
>
> > Would this be an appropriate time to suggest standardizing the
> > forking model of the Daemon mode for network syncs?
>
> IMHO it might be easier to move daemon mode out into a
> separate binary ('coldsyncd') first. If you're volunteering to do
> that, great.
Except, it isn't. If the listen blocks waiting for connects, then *forks*,
all the correct code is in place and life is happy, while the main block
goes back to listening. This allows for multiple simultaneous syncs.
OTOH, coldsyncd would have to find a way to pass the socket over to
coldsync.
The patch I have against PConnection_net.c (2.2.5) is like, 20-30 lines of
code. It would take more than that to have coldsync find that socket
descriptor from coldsyncd and begin conversing.
And in fact the patch I have is really about 10 lines, and the rest of the
difference is all the places where portions of the (UDP) daemon code were
gutted.
It's kinda odd... when syncing on the same network, I can run coldsync NP
and get thru fine.
But when it's remote, I have to have pi-csd running.
This is *NOT* a problem, actually, since pi-csd is basically a simple
redirector, and the coldsync code is MUCH simpler.
Truthfully I haven't looked at the 2.3.x code to port my patch over (which
somebody else gave me in the 1st plce) AT ALL except to see that the
structure of PConnection_net.c has changed pretty radically... I'll have to
spend a full "session" just figuring out what goes where, before I feel
comfortable making changes.
But if I bypass the step of stripping (unused) UDP code, I may be able to
get a forking mode working pretty quickly.
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.