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
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.
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.
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.
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.
Re: An example scenarion where we can use VC++/MFC socket programming techniques
Quote:
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 ?