Difference between revisions of "Talk:Nodal-wikid.pl"
(How interface-handler.pl connects to nodal-wikid.pl) |
m |
||
Line 7: | Line 7: | ||
This script will now be used to talk to the [[talk:interface-handler.pl|interface-handlers]] instead of [[server.pl]]. Its [[server.pl]] that receives the initial connection request because its the one listening on the socket, but now it will pass its [[talk:interface-handler.pl|interface-handler]]-handle to [[nodal-wikid.pl]] and remove it from its own IO::Select list. | This script will now be used to talk to the [[talk:interface-handler.pl|interface-handlers]] instead of [[server.pl]]. Its [[server.pl]] that receives the initial connection request because its the one listening on the socket, but now it will pass its [[talk:interface-handler.pl|interface-handler]]-handle to [[nodal-wikid.pl]] and remove it from its own IO::Select list. | ||
− | [[interface-handler.pl]] is listed under [[nodal-wikid.pl]] in the script-tree even though its actually spawned by [[server.pl]], because [[server.pl]] passes the handle on to the [[nodal-wikid.pl]] instance. How does it do this? [[server.pl]] has a handle to [[nodal-wikid.pl]] because it connects back to its parent when it spawns. When [[server.pl]] spawns an [[talk:interface-handler.pl|interface-handler]] it also has the [[nodal-wikid.pl]] handle in its global scope and uses this as its parent to connect back to rather than the main socket. | + | [[interface-handler.pl]] is listed under [[nodal-wikid.pl]] in the script-tree even though its actually spawned by [[server.pl]], because [[server.pl]] passes the handle on to the [[nodal-wikid.pl]] instance. |
+ | |||
+ | How does it do this? [[server.pl]] has a handle to [[nodal-wikid.pl]] because it connects back to its parent when it spawns. When [[server.pl]] spawns an [[talk:interface-handler.pl|interface-handler]] it also has the [[nodal-wikid.pl]] handle in its global scope and uses this as its parent to connect back to rather than the main socket. | ||
:--[[User:Nad|Nad]] 10:04, 17 Apr 2006 (NZST) | :--[[User:Nad|Nad]] 10:04, 17 Apr 2006 (NZST) | ||
---- | ---- |
Revision as of 22:37, 16 April 2006
It's using this instead of peerd because this ones designed to run as a child thread of wikid.pl while the peerd-husk is still in development. |
This script will now be used to talk to the interface-handlers instead of server.pl. Its server.pl that receives the initial connection request because its the one listening on the socket, but now it will pass its interface-handler-handle to nodal-wikid.pl and remove it from its own IO::Select list.
interface-handler.pl is listed under nodal-wikid.pl in the script-tree even though its actually spawned by server.pl, because server.pl passes the handle on to the nodal-wikid.pl instance.
How does it do this? server.pl has a handle to nodal-wikid.pl because it connects back to its parent when it spawns. When server.pl spawns an interface-handler it also has the nodal-wikid.pl handle in its global scope and uses this as its parent to connect back to rather than the main socket.
- --Nad 10:04, 17 Apr 2006 (NZST)
The process of organising node's GUIDs is not yet automatic, and so we need to deal directly with them instead of having them hidden behind the scenes like an inode-number.
Currently the nodes have just been assigned successive integers starting from zero as the various nodal concepts have arrisen. For this reason the location of the most up-to-date list of nodes is in the currently developing nodal script - in this case nodal-wikid.pl.
- --Nad 22:31, 15 Feb 2006 (NZST)
+peer dev links |