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-Thread: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s11g2000yqh.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Wed, 9 Feb 2011 02:19:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <62742057-73f3-4dc5-b565-55ca7d83b6cf@s11g2000yqh.googlegroups.com> References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <4d4ff70e$0$6886$9b4e6d93@newsspool2.arcor-online.net> <737a6396-72bd-4a1e-8895-7d50f287960e@d28g2000yqc.googlegroups.com> <4d5008a5$0$6879$9b4e6d93@newsspool2.arcor-online.net> <4d5031fe$0$6765$9b4e6d93@newsspool3.arcor-online.net> <1f229967-d3cf-42b6-8087-c97ee08652f3@i40g2000yqh.googlegroups.com> <4d51169e$0$7657$9b4e6d93@newsspool1.arcor-online.net> <1bnp0pw1c8r5b$.guxc48qweiwe.dlg@40tude.net> <4d51a1c0$0$19486$882e7ee2@usenet-news.net> <4d51b568$0$19486$882e7ee2@usenet-news.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1297246776 21547 127.0.0.1 (9 Feb 2011 10:19:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Feb 2011 10:19:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s11g2000yqh.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:17082 Date: 2011-02-09T02:19:36-08:00 List-Id: Hyman Rosen wrote on comp.lang.ada: > Except for DK, who granted was actually interviewing people to work > with such hardware devices, programming doesn't really involve such > bit twiddling any more. It doesn't even involve being able to design > data structures much any more either. These days, someone working in > Java or C++ will just pick an appropriate container class from the > library and use it, and it will be good enough. I disagree. If you look at struct sockaddr_t used by bind(2) and friends, you will see that the address and port number are in network byte order; you need to understand how, when and why to swap bytes. Just saying. Besides, just because, by some made-up statistic, the majority of programmers use a high-level framework to write disposable web applications does not mean I want to be part of that majority, or that I want my programs to be disposable, or that I want to hire programmers who can't extract a bit from a byte. -- Ludovic Brenta.