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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,582dff0b3f065a52 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,582dff0b3f065a52 X-Google-Attributes: gid109fba,public X-Google-ArrivalTime: 2001-08-06 17:15:26 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.bc.home.com.POSTED!not-for-mail From: kaz@ashi.footprints.net (Kaz Kylheku) Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Subject: Re: How Ada could have prevented the Red Code distributed denial of service attack. References: <3b690498.1111845720@news.worldonline.nl> <9kbu15$9bj@augusta.math.psu.edu> <9kbvsr$a02@augusta.math.psu.edu> <3B69DB35.4412459E@home.com> <3B6F312F.DA4E178E@home.com> Organization: Psycho-Neurotic Institute for the Very, Very Nervous Reply-To: kaz@ashi.footprints.net User-Agent: slrn/0.9.6.3 (Linux) Message-ID: Date: Tue, 07 Aug 2001 00:15:26 GMT NNTP-Posting-Host: 24.68.85.82 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.bc.home.com 997143326 24.68.85.82 (Mon, 06 Aug 2001 17:15:26 PDT) NNTP-Posting-Date: Mon, 06 Aug 2001 17:15:26 PDT Xref: archiver1.google.com comp.lang.ada:11431 comp.lang.c:72592 comp.lang.c++:80492 Date: 2001-08-07T00:15:26+00:00 List-Id: In article <3B6F312F.DA4E178E@home.com>, Warren W. Gay VE3WWG wrote: >The STL is not used in all contexts (it's just not practical). If you call >pipe(2), you will not be using a vector from the STL. You'll use a naked >int[2] array. This is only one example. Note that pipe() is an entry point into a POSIX operating system. Unless you have POSIX Ada bindings, you are going to have to use the C interface to call this thing at some point. The same goes for whatever programming language you are using. In C++, you have the advantage that you can use the C bindings directly. It takes very little additional work to make C headers useable by a C++ implementation. So you can make some class that encapsulates pipes, based directly on the C interface.