Subj : services To : Mcmlxxix From : Digital Man Date : Thu Oct 08 2009 10:59 pm Re: services By: Mcmlxxix to Digital Man on Thu Oct 08 2009 07:03 pm > Re: services > By: Digital Man to MCMLXXIX on Thu Oct 08 2009 05:54 pm > > > There are 2 types of Synchronet services: > > > > Dynamic (or normal) Services: > > These services are the simplest to write and the Synchronet Services > > module does most of the work for you (opening the socket, binding the > > port, accepting incoming connections). For each incoming connection, > > there is a separate instance of the JavaScript (or native executable) to > > handle the client. Multiple concurrent clients means multiple concurrent > > instances of the service. fingerservice.js, gopherservice.js, > > nntpservice.js are examples of dynamic services. > > > > Static Services: > > These services are executed when the Synchronet Services module starts > > up and stay running through-out the life of the services module (or they > > may be executed stand-alone via JSexec). Static services are responsible > > for accepting their own connections and only one instance of the service > > script (or executable) exists to handle all simultaneous client > > connections. ircd.js and staticservice.js are examples of static > > services. > > > > Ok.. based on the above I'm guessing I didn't look hard enough for that > documentation, so I apologisze... but that does mostly answer the question, > so thank you. Um, I just wrote that "documentation" in the post. :-) Think of it like a Wiki. :-) > It seems I need to make use of the latter "static service" as I'll need all > of the socket connections to communicate with one another. I'll probably > hit another wall shortly after starting down that road, so don't be > surprised if im back on here tomorrow with more. You could have dynamic service instances communicate with eachother as well (using Queues, Sockets, or disk I/O). You don't *have* to use a static service. digital man Snapple "Real Fact" #169: The first human-made object to break the sound barrier was a whip. .