-
Queues vs. Sockets (battle resurrected)
From
MCMLXXIX@VERT/MDJ to
Deuce on Thu Oct 22 11:21:39 2009
Ok. You're in a room with a computer, and you're tasked with writing internodeã(and eventually interbbs) comm for a chat room or game..ããThere are two large buttons in front of you.ãã1st button: Queue() objectsã2nd button: Socket() objectsããwhich button would you push?ããGranted I've already pushed a button... I'm just not sure if it was the rightãone. It's starting to make things very complicated.ãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
-
From
Digital Man@VERT to
MCMLXXIX on Thu Oct 22 22:57:22 2009
Re: Queues vs. Sockets (battle resurrected)ã By: MCMLXXIX to Deuce on Thu Oct 22 2009 11:21 amãã > Ok. You're in a room with a computer, and you're tasked with writingã > internode (and eventually interbbs) comm for a chat room or game..ã >ã > There are two large buttons in front of you.ã >ã > 1st button: Queue() objectsã > 2nd button: Socket() objectsã >ã > which button would you push?ã >ã > Granted I've already pushed a button... I'm just not sure if it was theã > right one. It's starting to make things very complicated.ããThere's another button which is the File object.ããAnyway, Queues can't be used to communicate between BBSes (you need sockets orãfiles to do that), so if you want to do interbbs, it might make sense to justãuse sockets. If you don't ever want to do interbbs, or you don't mind using aãdifferent communication mechanism between different nodes of your own BBS andãnodes of other BBSes, then you can use Queues to communicate between yourãnodes. Another downside of Queues is you can't communicate with nodes runningãon other computers (for the rare BBS, like Vertrauen, that has nodes splitãacross multiple systems), so you'll need to use Socket or File I/O for thatãcase.ããSo, if you want to support all use cases (inter and intra BBS, single and multiãsystem BBSes) using a single mechanism, sockets are the way to go.ãã digital manããSnapple "Real Fact" #135:ãA single coffee tree produces only about a pound of coffee beans per year.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
MCMLXXIX@VERT/MDJ to
Digital Man on Fri Oct 23 15:01:26 2009
Re: Queues vs. Sockets (battle resurrected)ã By: Digital Man to MCMLXXIX on Thu Oct 22 2009 22:57:22ãã > > Ok. You're in a room with a computer, and you're tasked with writingã > > internode (and eventually interbbs) comm for a chat room or game..ã > >ã > > There are two large buttons in front of you.ã > >ã > > 1st button: Queue() objectsã > > 2nd button: Socket() objectsã > >ã > > which button would you push?ã > >ã > > Granted I've already pushed a button... I'm just not sure if it was theã > > right one. It's starting to make things very complicated.ã >ã > There's another button which is the File object.ã >ã > Anyway, Queues can't be used to communicate between BBSes (you need socketsã > or files to do that), so if you want to do interbbs, it might make sense toã > just use sockets. If you don't ever want to do interbbs, or you don't mindã > using a different communication mechanism between different nodes of yourã > own BBS and nodes of other BBSes, then you can use Queues to communicateã > between your nodes. Another downside of Queues is you can't communicateã > with nodes running on other computers (for the rare BBS, like Vertrauen,ã > that has nodes split across multiple systems), so you'll need to use Socketã > or File I/O for that case.ã >ã > So, if you want to support all use cases (inter and intra BBS, single andã > multi system BBSes) using a single mechanism, sockets are the way to go.ã >ããThat is precisely the point of view I was looking for. Thank you.ããUnfortunately that means I have to tear apart almost everything I've written soãfar, which is why I posed the question rather than make any assumptions. It's aãshame to discard what I've written.ããQueues are REALLY nice for internode (same system).. but that's never reallyãbeen the ultimate goal for any of this stuff.ãããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
-
From
Digital Man@VERT to
MCMLXXIX on Fri Oct 23 15:00:29 2009
Re: Queues vs. Sockets (battle resurrected)ã By: MCMLXXIX to Digital Man on Fri Oct 23 2009 03:01 pmãã > Re: Queues vs. Sockets (battle resurrected)ã > By: Digital Man to MCMLXXIX on Thu Oct 22 2009 22:57:22ã >ã > > > Ok. You're in a room with a computer, and you're tasked with writingã > > > internode (and eventually interbbs) comm for a chat room or game..ã > > >ã > > > There are two large buttons in front of you.ã > > >ã > > > 1st button: Queue() objectsã > > > 2nd button: Socket() objectsã > > >ã > > > which button would you push?ã > > >ã > > > Granted I've already pushed a button... I'm just not sure if it wasã > > > the right one. It's starting to make things very complicated.ã > >ã > > There's another button which is the File object.ã > >ã > > Anyway, Queues can't be used to communicate between BBSes (you needã > > sockets or files to do that), so if you want to do interbbs, it mightã > > make sense to just use sockets. If you don't ever want to do interbbs,ã > > or you don't mind using a different communication mechanism betweenã > > different nodes of your own BBS and nodes of other BBSes, then you canã > > use Queues to communicate between your nodes. Another downside of Queuesã > > is you can't communicate with nodes running on other computers (for theã > > rare BBS, like Vertrauen, that has nodes split across multiple systems),ã > > so you'll need to use Socket or File I/O for that case.ã > >ã > > So, if you want to support all use cases (inter and intra BBS, singleã > > and multi system BBSes) using a single mechanism, sockets are the way toã > > go.ã > >ã >ã > That is precisely the point of view I was looking for. Thank you.ã >ã > Unfortunately that means I have to tear apart almost everything I'veã > written so far, which is why I posed the question rather than make anyã > assumptions. It's a shame to discard what I've written.ã >ã > Queues are REALLY nice for internode (same system).. but that's neverã > really been the ultimate goal for any of this stuff.ããAnd I just recently noticed (coincidentally) that the Queue class was notãavailable for services! I've fixed that bug, but any service that relies on theãQueue class would not work on older builds. :-(ãã digital manããSnapple "Real Fact" #141:ãThe square dance is the official dance of the state of Washington. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Deuce@VERT/SYNCNIX to
MCMLXXIX on Fri Oct 23 15:22:05 2009
Re: Queues vs. Sockets (battle resurrected)ã By: MCMLXXIX to Deuce on Thu Oct 22 2009 11:21 amãã > Ok. You're in a room with a computer, and you're tasked with writingã > internode (and eventually interbbs) comm for a chat room or game..ã >ã > There are two large buttons in front of you.ã >ã > 1st button: Queue() objectsã > 2nd button: Socket() objectsã >ã > which button would you push?ã >ã > Granted I've already pushed a button... I'm just not sure if it was theã > right one. It's starting to make things very complicated.ããI push Socket() because I understand how they work.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã