Skip to content

Broadcast Configuration

bjacobel edited this page Jun 18, 2012 · 1 revision

If for some reason you need the Nao to broadcast to a specific subnet instead of globally like it usually does, look at the function that binds sockets in Comm.cpp. There's a line that sets the bind address struct's member s_addr to INADDR_ANY (which is actually 255.255.255.255). You need to set this value to a subnet mask (for example, 192.168.255.255). The robot will then only broadcast to that subnet.

Clone this wiki locally