Hello everybody !

I've a program which tries to connect to a local (192.168.0.x) server to obtain a license from it.
I've tried to write a program that listens for connections of that program and returns a valid license on connection.

My problem is the following: How do I set up a TCP/IP (not UDP) socket to listen for broadcasts and how to I broadcast a message to all computers in a LAN? (I think it's, but I don't know)

The function "setsockopt" does not work with a socket opened as "SOCK_STREAM".