Is there any method to use Winsocket create a Broadcast application? Is that mean that I use UDP to send data to 255.255.255.255, then all the Subnet will receive the data?
I think the given hints will be enough for u to make a prog to do this..
1) first make a socket of type SOCK_DGRAM
2) change socket to SO_BROADCATS using setsockopt function.
3) now u can use sendto fn with address as 255.255.255.255
the above was for the clinet( one who sends data,,)
and for server,, just use dgram socket.. with in a lopp with recvfrom any addrees INADDR_ANY ..
if u need more detailed sample.. ican send u if u can send u'r email id..
my id is saneesh@usa.net
1) first make a socket of type SOCK_DGRAM
2) change socket to SO_BROADCATS using setsockopt function.
3) now u can use sendto fn with address as 255.255.255.255
the above was for the clinet( one who sends data,,)
and for server,, just use dgram socket.. with in a lopp with recvfrom any addrees INADDR_ANY ..
if u need more detailed sample.. ican send u if u can send u'r email id..
my id is saneesh@usa.net