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,fd0ee7c9be011576 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-02 09:44:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!24.30.200.2.MISMATCH!news-east.rr.com!cyclone-west.rr.com!news.rr.com!news-west.rr.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenet From: Robert Spooner Newsgroups: comp.lang.ada Subject: Re: Ada Annex E (Just curious :-) Date: Fri, 02 Mar 2001 09:42:20 -0800 Organization: TSCNET, Inc. (using Airnews.net!) Message-ID: X-Orig-Message-ID: <3A9FDB7C.C3EABF4E@psu.edu> References: <3A9CEF45.25677A63@earthlink.net> Abuse-Reports-To: abuse at tscnet.com to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Fri Mar 2 11:39:45 2001 NNTP-Posting-Host: !]5EQ1k-VVT6HB( (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en,de,fr-FR To: Frank Xref: supernews.google.com comp.lang.ada:5380 Date: 2001-03-02T09:42:20-08:00 List-Id: I made my own bindings to sockets routines before AdaSockets was available, and at least for Unix (Solaris) and VxWorks I was able to put all the operating system dependent information in a single package body where I defined a few constants such as the mask size for Select. It should also work for VMS if you want to use sockets rather than the QIO interface. I haven't looked at Windows closely enough to comment on how different the sockets interface is for it. You can know what to do about network order for parameters by testing the Bit_Order attribute of a type with default bit ordering, so that shouldn't be a portability issue. Bob Frank wrote: > > Hi! > > I guess it some kind of CORBA that is the solution for this kind of problem > then? > > Frank > > > > > I haven't looked at ADEPT in a long time, so I can't speak to that. I > > have had success using the AdaSockets collection on the natively > > compiled Ada side, and the Socket class on the Java side (actually > > JGNAT). One does have to worry about host vs network byte order, and > > what I've gotten so far is probably horribly non-portable, but for now > > anyway it's working. > > -- Robert L. Spooner Registered Professional Engineer Associate Research Engineer Intelligent Control Systems Department Applied Research Laboratory Phone: (814) 863-4120 The Pennsylvania State University FAX: (814) 863-7841 P. O. Box 30 State College, PA 16804-0030 rls19@psu.edu