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,f0972757f30880f7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-12 08:22:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Toshitaka Kumano Newsgroups: comp.lang.ada Subject: Re: Sockets - newbie at a brick wall Date: Fri, 13 Dec 2002 01:23:06 +0900 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3df85d10.3167644@news.demon.co.uk> <3df895c0.17679291@news.demon.co.uk> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1039710122 21787 137.194.161.2 (12 Dec 2002 16:22:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 12 Dec 2002 16:22:02 +0000 (UTC) Return-Path: X-Mailer: Mozilla 4.78 [ja] (Win98; U) X-Accept-Language: en-US,en,ja 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:31744 Date: 2002-12-13T01:23:06+09:00 Sorry for somewhat off topic from GNAT.Sockets, John McCabe wrote: > >1) Your use of Socket_Datagram with a Connect() call. Perhaps you > >should try Socket_Stream sockets. > > Datagrams are 'connectionless' sockets so you wouldn't use the > Connect() call at all. This statement seems restrictve. You can do "connect()" for Datagram socket and get some merits(*). *) Detect ICMP errors from the remote peer, better performance in some protocol stacks and wider avaiability of system calls other than recvfrom/sendto.... -- Toshitaka Kumano Kamakura, Japan