March 27, 2013
8 a.m.
On 27 Mar 2013, at 08:03, Holger Hans Peter Freyther <holger@freyther.de> 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.
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#n...
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