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,f0972757f30880f7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-12 09:26:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed.stueberl.de!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: john@nospam.demon.co.uk (John McCabe) Newsgroups: comp.lang.ada Subject: Re: Sockets - newbie at a brick wall Date: Thu, 12 Dec 2002 17:27:22 GMT Message-ID: <3df8c6a6.30196920@news.demon.co.uk> References: <3df85d10.3167644@news.demon.co.uk> <3df895c0.17679291@news.demon.co.uk> NNTP-Posting-Host: pipehawk.demon.co.uk X-Trace: news.demon.co.uk 1039714002 9924 158.152.226.81 (12 Dec 2002 17:26:42 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 12 Dec 2002 17:26:42 +0000 (UTC) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:31752 Date: 2002-12-12T17:27:22+00:00 List-Id: On Fri, 13 Dec 2002 01:23:06 +0900, Toshitaka Kumano wrote: >Sorry for somewhat off topic from GNAT.Sockets, Not necessarily :-) >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.... If you can find the time and equipment, could you produce a version of the my_client.adb that does this please? It would be interesting to see as I've only ever used connect() on stream sockets. Best Regards John McCabe To reply by email replace 'nospam' with 'assen'