[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldsync-hackers] my patches for multiple users & multiple concurrent conections
Hello All!
I've seen a few people here building centralized "enterprise
coldsync servers"... i'm working in a project that requiere this too.
The changes i made to coldysnc are in the attached patch. Here is the
summary of modifications in this patch:
* New conduit headers "UserId" and "UserName", these are de palm
userid & username.
* Only tcp part of netsync is in coldsync, the udp part of the
protocol is handled by "pi-csd" daemon from pilot-link. Coldsync is
called from inetd in "nowait" mode (multiple simultaneous conections
allowed).
* Use only one linux user for multiple palms, in daemon mode
(-md) there is no more ".palm" directory, now this directory is created
with the same name as the palm user name. So if we use the "coldsync"
linux user, the directory structure will be /home/coldsync/<palm user
name 1>/, /home/coldsync/<palm user name 2>/, etc.
Francisco
PD: Sorry about my pseudo-english ;)
coldsync-2.1.3.patch
# /etc/inetd.conf: see inetd(8) for further informations.
netsync stream tcp nowait root /usr/local/bin/coldsync coldsync -md -t net -s -l /var/log/coldsync
# /etc/services:
netsync-wakeup 14237/udp
netsync 14238/tcp