discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to use gr_make_udp_sink with the broadcast ad


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] How to use gr_make_udp_sink with the broadcast address?
Date: Sun, 18 Sep 2011 14:02:04 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110831 Fedora/3.1.12-2.fc14 Thunderbird/3.1.12

On 09/18/2011 01:17 PM, Lương Tấn Phong wrote:

Hi Readers,

 

I'd like to use gr_make_udp_sink with the broadcast address but error "socket connect: Permission denied". I've run in root.

 

The commands I used: (the address of PC: 192.168.1.66)

udp = gr_make_udp_sink(sizeof(gr_complex), "192.168.1.255", udp_port, 1472, true);

and:

udp = gr_make_udp_sink(sizeof(gr_complex), "255.255.255.255", udp_port, 1472, true);

Could you help me, please?

 

LuongTanPhong


Because on LInux, you have to *explicitly ask* for a socket to be enabled for the broadcast address, using the
  SO_BROADCAST socket option, which, I'm willing to bet, the underlying methods for make_udp_sink don't do.


-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]