|
-
September 25th, 2008, 07:41 AM
#1
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
-
September 25th, 2008, 08:03 AM
#2
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.
-
September 25th, 2008, 05:46 PM
#3
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.
-
September 26th, 2008, 07:38 AM
#4
Re: An example scenarion where we can use VC++/MFC socket programming techniques
 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.
-
September 26th, 2008, 05:24 PM
#5
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.
-
September 26th, 2008, 05:48 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|