This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: UDP on EDB7211
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] UDP on EDB7211
- From: Hugo Tyson <hmt at cygnus dot co dot uk>
- Date: 04 Jul 2000 16:54:20 +0100
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Cygnus Solutions, a Red Hat company (Cambridge, UK)
- References: <17455.962722360@raven.ravenbrook.com>
Nick Barnes <Nick.Barnes@pobox.com> writes:
> Has anyone had any success using UDP in the beta TCP/IP stack?
> connect() is OK but then sendto() always fails. Has anyone had any
> success with these?
Hi Nick,
AIUI, the SNMP server uses UDP (ie. SOCK_DGRAM as opposed to SOCK_STREAM),
and that's all cool. But it doesn't use connect(), it uses a global
listener via bind(), if that's the right words. Ditto the tftp_client,
that binds to a specific address rather than broadcast. So it works more
than somewhat.
Connect's man page sez that in the UDP case, it only selects a peer to
connect to rather than a socket - UDP being connectionless - might that be
a source of confusion? I guess that means you *must* sendto() the same
peer you connect()ed to?
Anyway, we've used UDP a lot with bind() but not with connect().
HTH,
- Huge