Click to See Complete Forum and Search --> : Where to use setsocketopt();


majidpics
12-04-2002, 05:18 AM
I want to use setsocketopt to set the SO_BROADCAST flag, should i use it before creating datagram socket or after creating the socket.

Spawn913
12-04-2002, 06:06 AM
setsockopt is used to change the properties of sockets, you should use it *AFTER* creating your datagram socket.