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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Questions about socket programming Date: Fri, 26 Dec 2014 19:21:48 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <%pzmw.361295$Mq4.223465@fx25.iad> <7671ca8e-eb53-412f-8b88-d09cb04c66cc@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1419643309 15951 24.196.82.226 (27 Dec 2014 01:21:49 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 27 Dec 2014 01:21:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:24240 Date: 2014-12-26T19:21:48-06:00 List-Id: "David Botton" wrote in message news:7671ca8e-eb53-412f-8b88-d09cb04c66cc@googlegroups.com... >> So I wonder, should I use Gnatsocket or are there any problems? > > For a telnet like service there is little to be concerned with in using > the Gnat Socket implementation and there would be no advantage (perhaps > disadvantages) to writing your own binding to the same libraries. Unless you want it to work with other Ada compilers (to avoid GNAT lock-in). > If I understand correctly, and perhaps I don't, the complaints have more > to do with performance issues on scales not relative to what you are > trying to accomplish. *My* complaint is simply that you end up with GNAT lock-in whenever you depend on GNAT-specific packages. Ada is powerful enough that such lock-in shouldn't be necessary. So it's better to use a package that is more portable, like Claw.Sockets (if you're already locked into Windows) or Adasockets or (coming soon) NC_Sockets. Randy.