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.0 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ff1f0403676a2300 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.236.177.72 with SMTP id c48mr10985362yhm.31.1344998913246; Tue, 14 Aug 2012 19:48:33 -0700 (PDT) Path: c6ni115620301qas.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada Networking (General/Design) Date: Mon, 13 Aug 2012 18:19:19 +0200 Organization: cbb software GmbH Message-ID: <1gfytw9o9pem2.1xvhednlaotb3$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-08-13T18:19:19+02:00 List-Id: On Mon, 13 Aug 2012 15:51:31 +0000 (UTC), tmoran@acm.org wrote: >> If Ada provided higher level socket library with an integrated support of >> protected objects and tasks... > What do you mean? The most difficult and unavoidable part about socket programming is tasking. We need reader and writer tasks or else socket-select-driven co-routines. The reader and writer parts have to communicate each other in some intricate way because it is two tasks but one protocol state machine, or one task and many state machines in the case of socket select. There is the issue of blocking socket I/O non-abortable by Ada means. All this incredibly complicates design. If Ada ever have to support sockets it should be a high level Ada tasking-friendly abstraction, which I am not ready to outline. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de