This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: UDP on EDB7211



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]