comp.lang.ada
 help / color / mirror / Atom feed
From: Toshitaka Kumano <kumano@cl.cilas.net>
Subject: Re: Sockets - newbie at a brick wall
Date: Fri, 13 Dec 2002 01:23:06 +0900
Date: 2002-12-13T01:23:06+09:00	[thread overview]
Message-ID: <mailman.1039710121.26050.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3df895c0.17679291@news.demon.co.uk

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



  reply	other threads:[~2002-12-12 16:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 18:40 Sockets - newbie at a brick wall Benjamin Place
2002-12-12  9:58 ` John McCabe
2002-12-12 14:19   ` John McCabe
2002-12-12 16:23     ` Toshitaka Kumano [this message]
2002-12-12 17:27       ` John McCabe
2002-12-13 11:25       ` John McCabe
2002-12-12 16:49   ` Benjamin Place
2002-12-13 11:31 ` Simon Wright
2002-12-13 13:52   ` John McCabe
2002-12-13 22:38   ` Benjamin Place
2002-12-16 10:16     ` John McCabe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox