Add UDP socket in method to out data

Posted on 2006-05-18
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

    Have a look at this :;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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    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.
    This video discusses moving either the default database or any database to a new volume.

    737 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

    18 Experts available now in Live!

    Get 1:1 Help Now