DakienDX
February 17th, 2001, 08:37
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 192.168.0.255, but I don't know)
The function "setsockopt" does not work with a socket opened as "SOCK_STREAM".
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 192.168.0.255, but I don't know)
The function "setsockopt" does not work with a socket opened as "SOCK_STREAM".