UDP socket bind to specific IP does not receive broadcast on Linux (Page 1) / Networking / UNIX Sock

UDP socket bind to specific IP does not receive broadcast on Linux (Page 1) / Networking / UNIX Sock

瀏覽:1417
日期:2025-06-12
Hi, While replying to another thread "bind() vs connect() ...", I came up with the following program. Compile it with command "gcc -g bcast.c -o bcast" on Linux. This program can act as a client when run with a dash as its parameter bcast - To run as a se...看更多