gomd-devel
[Top][All Lists]
Advanced

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

[gomd-devel] <GOMD> preliminar gomd autodiscovery -> works!


From: Gian Paolo Ghilardi
Subject: [gomd-devel] <GOMD> preliminar gomd autodiscovery -> works!
Date: Thu, 31 Jul 2003 23:06:14 +0200

Hi all.

Here we go.
Preliminar gomd autodiscovery system _do_ work!
See new gomdSearcher class (file gomdSearcher.h/gomdSearcher.cpp).

CVS code was updated.

Now when you execute gomd,you'll see it searching for other gomd daemons on
"local" subnet (something like a ping).
It will search daemon listening on port 9889 (gomd std port).

1)Obviously this search does _not_ interfere with the main app (try
contacting the daemon with telnet). :)
2)Obviously the daemon will find itself (it will start and close the conn to
itself) -> this is a proof of concept/force! ;)
3)Obviously now the daemon _actually_ doesn't save/use the list of known
remote gomds ;)

Next step will be
- using this new infos
- providing a minimal cache for known gomds
- implement something like a "zone transfer" (used by DNSes) from a gomd
daemon to another one (to minimize network overhead).

I need a lot of betatesting.
Please help me! :)

CU.

PS: Yeah !!! :)

<rejected>

<< CVS NOTES >>

1)GOMD (DAEMON)

IN connHandler.h/connHandler.cpp
(+) added remote-request support in analyzeOption() -> new placeholder for
remote options (REMOTE_OR_LOCAL_NODE)
(+) added better socket errors handling

IN gomd2gomd.h/gomd2gomd.cpp
(+) some cleanups
(-) removed pingRemoteGomd() and pingAll() functions (moved to new
gomdSearcher class)

IN gomdSearcher.h/gomdSearcher.cpp
NOTE: this class (called by main.cpp) is used to search for other gomd
daemon in the local subnet
           (including the local gomd daemon). This is a thread so it doesn't
interfere with the main thread of gomd.
(+) added pingRemoteGomd() and pingAll() functions (moved from gomd2gomd)

IN main.cpp
(+) invokes new gomdSearcher class to search for other gomd (in the local
subnet)

IN Makefile.no_libgtop/Makefile.with_libgtop
(+) added new gomdSearcher to compile line
(+) added time required to build each object :)


2)LIBRARY (LIBGOMD)

IN libgomd.cpp
(+) cleanup

IN Makefile
(+) added time required to build each object :)

IN netCode.h/netCode.cpp
(+) removed m_receiver (TCPSocket) because it was unused
(+) switch from tcstream object to TCPStream object (better con handling)
(+) enabled non blocking socket mode (to avoid interference with the app
using the libgomd object)
(+) enable socket timeout (5 seconds)
(+) cleanups


3)SCRIPT (COMPILE.SH)

IN compile.sh
(+) library will be installed (because now the daemon uses it! :) )
(+) cleanups










reply via email to

[Prev in Thread] Current Thread [Next in Thread]