CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Posts
    48

    An example scenarion where we can use VC++/MFC socket programming techniques

    Hi,
    Can anyone provide me some sample scenarion example where we can use VC++/MFC socket programming features ?

    Thanks
    Kiran

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: An example scenarion where we can use VC++/MFC socket programming techniques

    Example: chatting software/instant messaging.

    Example: connecting to a server to get automatic updates.

    Example: anything else that involves network communication.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: An example scenarion where we can use VC++/MFC socket programming techniques

    Just to clarify: socket is not a C++ specific nor it is MFC specific.
    Sockets are part of the Windows OS.
    C++ is one of the languages that by can use winsock API, MFC is a class library and wraps sockets in a C++ class.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  4. #4
    Join Date
    Feb 2005
    Posts
    2,160

    Re: An example scenarion where we can use VC++/MFC socket programming techniques

    Quote Originally Posted by JohnCz
    Just to clarify: socket is not a C++ specific nor it is MFC specific.
    Sockets are part of the Windows OS.
    C++ is one of the languages that by can use winsock API, MFC is a class library and wraps sockets in a C++ class.
    To be fair, the winsock API is pretty much a port of the Berkeley sockets implementation and predates Windows by over a decade.

  5. #5
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: An example scenarion where we can use VC++/MFC socket programming techniques

    Berkeley sockets predated Winsock, true, but Winsock added a new dimension to socket programming by introducing a concept not present in the original Berkeley BSD implementation: Asynchronous sockets. Before Winsock, there was only blocking and non-blocking sockets. To get notification of an event, you needed to poll for it. After Winsock, we also had asynchronous sockets, which provided asynchronous notification of an event (by sending a Windows message).

    In other words, before Winsock, there was no counterpart to the WSAAsyncSelect function, and the concept of asynchronous notification for sockets did not exist.

  6. #6
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: An example scenarion where we can use VC++/MFC socket programming techniques

    Can anyone provide me some sample scenarion example where we can use VC++/MFC socket programming features ?
    Why ? If you don't need it, why look for it ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured