public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* UNIX Sockets - Broadcasting - Broadcast address
@ 2001-12-10 20:19 Kay M
  2001-12-11  0:33 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Kay M @ 2001-12-10 20:19 UTC (permalink / raw)
  To: cygwin

I have written a client program that connects to the local broadcast address 
and reads datagrams that are produced by a server. It works on my linux (no 
internet) machine. But on my PC under CYGWIN the binding of the socket to 
the Broadcast Address give an error EADDRNOAVAIL.

I tried both 127.255.255.255 and also INADDR_BROADCAST. If I change 
broadcast address to 127.255.255.254, then server and client both work  
under Cygwin, but that isnt Broadcasting address though.

Can anyone help /explain ?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: UNIX Sockets - Broadcasting - Broadcast address
  2001-12-10 20:19 UNIX Sockets - Broadcasting - Broadcast address Kay M
@ 2001-12-11  0:33 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2001-12-11  0:33 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 11, 2001 at 03:21:13AM +0000, Kay M wrote:
> I have written a client program that connects to the local broadcast address 
> and reads datagrams that are produced by a server. It works on my linux (no 
> internet) machine. But on my PC under CYGWIN the binding of the socket to 
> the Broadcast Address give an error EADDRNOAVAIL.

You're getting the error from the underlying WinSock DLL.  I don't
understand what you're doing, though.  If the server is sending
UDP broadcast messages on your subnet, where do you `connect'???
With UDP you just call readfrom() and wait for a package.  There's
nothing you could connect to or listen on.  And the subnet's
broadcast address isn't a legal address for a machine anyway.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-11  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-10 20:19 UNIX Sockets - Broadcasting - Broadcast address Kay M
2001-12-11  0:33 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).