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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7bf7c8b2f1e437b X-Google-Attributes: gid103376,public From: nabbasi@pacbell.net.NOSPAM Subject: Re: Ada interface to Jave network socket Date: 2000/05/29 Message-ID: <8gta96$1fnt@drn.newsguy.com>#1/1 X-Deja-AN: 628535823 References: <3930B462.66199B57@compuserve.com> Organization: - Newsgroups: comp.lang.ada Date: 2000-05-29T00:00:00+00:00 List-Id: In article <3930B462.66199B57@compuserve.com>, "Richard says... >The interface is through a tcp socket connection. The Ada code is to >connect with >a network socket created in Java then pass messages across. You can use Berkeley sockets from Ada. There is a Ada package for that call AdaSockets. http://www-inf.enst.fr/ANC/ If the Ada program is the client, and if you are using TCP (not UDP), simply create a socket() using Java socket address (IP/port), then call connect() on the socket, then use write() to send data. for UDP, slightly different calls needs to be used (sendto(), no connection, see your TCP/IP book for more info). Nasser