Solved

Winsocket Problem

Posted on 1998-07-13
5
163 Views
Last Modified: 2013-11-20
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 need a detailed sample. Thank you very much.
0
Comment
Question by:jonalee
  • 3
5 Comments
 
LVL 8

Expert Comment

by:trestan
ID: 1319071
There is an introduction and example codes about network communicaion.
http://devcentral.iftech.com/learning/tutorials/nt/nt3.asp
0
 
LVL 2

Author Comment

by:jonalee
ID: 1319072
I need more detailed thing about how to write the coding for broadcasting, not the NamePipe and MailSlot.

Thanks.

0
 
LVL 1

Accepted Solution

by:
saneesh100 earned 100 total points
ID: 1319073
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


0
 
LVL 2

Author Comment

by:jonalee
ID: 1319074
Thank you for the help
0
 
LVL 2

Author Comment

by:jonalee
ID: 1319075
Thank you for the help
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
sum28 challenge 31 115
Path of Workbook 3 86
Making an alias 7 101
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question