On 27 Mar 2013, at 08:03, Holger Hans Peter Freyther <[email protected]> wrote:
> On Wed, Mar 27, 2013 at 12:25:20AM +0100, Sven Van Caekenberghe wrote: > >> I politely disagree ;-) >> >> But I am willing to learn: so please provide some references of such UDP >> usage. >> >> http://en.wikipedia.org/wiki/Datagram > > I am not sure which part you are disagreeing to. But you can definately use > connect on a SOCK_DGRAM. The benefit is that you can then use read/write on > filedescriptor instead of sendto/recv. An example is here[1]. > > holger > > [1] > http://cgit.osmocom.org/openbsc/tree/openbsc/src/osmo-bsc_mgcp/mgcp_main.c#n242 OK, but I would doubt that such API usage would change the basic semantics of UDP. And I never said that you couldn't do a connect on a UDP socket. Sven
