Solved

Winsocket Problem

Posted on 1998-07-13
5
158 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now