Add UDP socket in method to out data

Posted on 2006-05-18
Medium Priority
Last Modified: 2013-11-20
Hi all

I have this code on vc++ the method get data and length

Want to add send data (*_Data) via UDP Port using socket >>> what can i do

i'm yet begginer of programming vc++  

who can do that

void CMyPlugin::On_Filter_Data_Arrival(int MyFilter, int DataLen, unsigned char *_Data)
      // MyFilter should be the same as in m_myfilter (=0)
Question by:newnewmommon
1 Comment
LVL 22

Accepted Solution

mahesh1402 earned 2000 total points
ID: 16715345
Have a look at this : http://support.microsoft.com/default.aspx?scid=kb;en-us;214396 <=== 'MSocUdp.exe Implement UDP Using CAsyncSocket'

The 'MSocUdp' sample is a minimal dialog box-based MFC application that demonstrates how to use the CAsyncSocket class to send and receive directed datagram or broadcast datagram over User Datagram Protocol (UDP).

Hope this helps.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

862 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