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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dfddb85b5a048f08 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-16 03:29:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: GNAT.sockets UDP Example Date: Sat, 16 Nov 2002 05:27:51 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <8$vYrY3kACB@lemmies.lb.bawue.de> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1037446142 27787 137.194.161.2 (16 Nov 2002 11:29:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 16 Nov 2002 11:29:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:30977 Date: 2002-11-16T05:27:51-06:00 ----- Original Message ----- From: "arvids lemchens" Newsgroups: comp.lang.ada To: Sent: November 15, 2002 3:48 PM Subject: GNAT.sockets UDP Example > Hello, > > i am looking for a very short and simple example how to send an > (empty) UDP-datagram with GNAT (3.14p, Linux). > > Found one for TCP, but didn't get it to switch to UDP. > > Somehow it seems that i am to simpleminded for the "Send_Socket". > It's hard to guess what you might be doing wrong, without your code. One guess -- did you create your socket like this? Create_Socket (Socket, Family_Inet, Socket_Datagram); How do you know that you didn't send correctly? Could the problem be on the receiving end? What platform/OS are you using? I have used GNAT sockets for TCP, UDP (broadcast and point-to-point), and multicast with great success, by none of my examples is short or simple.