From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6c9f1733206a18a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-10 00:59:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news1.cableinet.net.POSTED!not-for-mail From: Tony Gair Newsgroups: comp.lang.ada Subject: Re: Interest in sockets package development Message-ID: <20010910085801.4613629f.tonygair@blueyonder.co.uk> References: <9neodq$1vcs$1@msunews.cl.msu.edu> <9nh3qi$14m6$1@msunews.cl.msu.edu> X-Newsreader: Sylpheed version 0.5.3 (GTK+ 1.2.9; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 10 Sep 2001 07:59:28 GMT NNTP-Posting-Host: 62.31.154.215 X-Complaints-To: http://www.blueyonder.co.uk/abuse X-Trace: news1.cableinet.net 1000108768 62.31.154.215 (Mon, 10 Sep 2001 08:59:28 BST) NNTP-Posting-Date: Mon, 10 Sep 2001 08:59:28 BST Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:12975 Date: 2001-09-10T07:59:28+00:00 List-Id: Hi Chad, I am in the process of making two libraries to represent two socket servers one listens to a socket, starts a connection (and a new task to keep listening for new connections). The sockets can pass any variant record type. My intention is for both the server and the client to react on the receipt of these records. Whilst it is fairly basic it does fit with tasking quite well and can be used to drive to drive a user interface and drive events on the server side on an internet application used in conjunction with GTKada... Only problem, I am still debugging it and have been going for three weeks, S. Tardieu wrote his socket package in a half day. You're welcome for a look Tony Gair On Sun, 9 Sep 2001 21:14:42 -0400 "Chad R. Meiners" wrote: > I have used AdaSockets for previous projects before, but it doesn't scale up > well since you have to allocate a task per socket due to the sockets > blocking. I don't mind dealing with blocking sockets in fact I prefer them > to non-blocking sockets. Thus what I really want so is a nice queue I can > tell my set of sockets to drop an event into the queue so I can block a > couple worker tasks on the queue instead of having a task per socket. So > far I haven't seen any LGPL'd package that does this; therefore, I have > taken it upon myself to create such a package. I remember a while back > someone was complaining about how the available packages for sockets didn't > scale up well for a large number of sockets. It had something to do with > the select function being difficult. At that point I decided that I was > going to someday (if I had the time) solve this problem even if it meant I > had to redesign the socket interface. So over the months whenever I got > bored I browsed through the Winsock api's looking for a better way to > implement a sockets package. I figured out a nice solution a while back > but until now I haven't had the time to implement it. The original point of > my post was to ask if anyone out there was interested in this development. > > I remember a while back someone pointed to the original sockets package that > GNAT.Sockets came from; I checked it out and decided that it did not satisfy > my requirements. I do not know if this is still true, but since I am a grad > student I doubt that I will see Gnat(Pro) anytime soon ;) If someone would > like to send me the spec files for GNAT.Sockets it might save me a good deal > of work if it turns I that I would be duplicating effort without adding > anything new and exciting *grin* > > So let us return to the original subject ... Does anyone here have any > interest in a sockets package that handles a large number of sockets > elegantly? > > -Chad R. Meiners > >