• services

    From MCMLXXIX@VERT/MDJ to Digital Man on Thu Oct 8 10:55:06 2009
    I'm working on this gaming service, and I'm a bit confused about a few things.ããAssuming my BBS is acting as the HUB, how can the service access otherãconnections to send data between two NODES?ããFor example:ããDigital man runs chess.js on Vertrauen, it connects to the HUB via the gamingãservice...ããDeuce runs chess.js on Synchronix, it also connects..ããNow I've got two clients connected to the HUB, who need to be able toãcommunicate with each other.ããAre service client connections stored in an array somewhere?ããI think I'm missing something obvious.ããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Digital Man@VERT to MCMLXXIX on Thu Oct 8 17:54:47 2009
    Re: servicesã By: MCMLXXIX to Digital Man on Thu Oct 08 2009 10:55 amãã > I'm working on this gaming service, and I'm a bit confused about a fewã > things.ã > Assuming my BBS is acting as the HUB, how can the service access otherã > connections to send data between two NODES?ã >ã > For example:ã >ã > Digital man runs chess.js on Vertrauen, it connects to the HUB via theã > gaming service...ã >ã > Deuce runs chess.js on Synchronix, it also connects..ã >ã > Now I've got two clients connected to the HUB, who need to be able toã > communicate with each other.ã >ã > Are service client connections stored in an array somewhere?ã >ã > I think I'm missing something obvious.ãã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.ãã digital manããSnapple "Real Fact" #5:ãCamels have 3 eyelids.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mcmlxxix@VERT/SYNCNIX to Digital Man on Thu Oct 8 19:03:05 2009
    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.ãã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.ãã-M@ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Digital Man@VERT to Mcmlxxix on Thu Oct 8 22:59:03 2009
    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. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mcmlxxix@VERT/SYNCNIX to Digital Man on Fri Oct 9 19:06:29 2009
    Re: servicesã By: Digital Man to Mcmlxxix on Thu Oct 08 2009 10:59 pmãã > Um, I just wrote that "documentation" in the post. :-) Think of it like aã > Wiki. :-)ã >ããwell it was so neatly printed, I figured you cut and pasted it. It made meãpanic, since that last thing I want to be is another Phil.ãã > 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.ããwell, it seems that would be more of a hacky way of doing it. I've done enoughãthings the "less right" way, so I'd like to avoid that if I can. It's startingãto look more and more like I should try to work this all into qengine.js andãrun it as a static service, since that wuold keep everything together a lotãbetter.ããI've got a hell of a lot of code in chateng.js and qengine.js already, so ifãI've done something the wrong way it's going to suck a major set of balls toãhave to rework everything.ããã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Tracker1@VERT/TRN to MCMLXXIX on Sat Oct 10 21:41:36 2009
    On 10/8/2009 7:55 AM, MCMLXXIX wrote:ã> Now I've got two clients connected to the HUB, who need to be able toã> communicate with each other.ã> ã> Are service client connections stored in an array somewhere?ã> ã> I think I'm missing something obvious.ããprobably an overly complicated example, but look at the irc js stuff, since it ãhandles multiple clients, etc...ãã-- ãMichael J. Ryan - http://tracker1.info/ãã... B5: We all believe in something... greater than ourselves, even if it's ãjust the blind forces of chance.ãã---ã þ Synchronet þ Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.comã