Client-Server Comms Coding Beginner Help

  • Thread starter Thread starter Lou Arnold
  • Start date Start date
L

Lou Arnold

I need some help or advice for coding client-server communications on
Windows 2000. All I really want is a small program for demo purposes.
I don't want to program a server that actually does anything but
confirm that its communicating with a few clients.
Here are some questions, but pardon my ignorance if they seem silly:
1) What's the difference, if any between Winsock and Win32. I thought
Winsock was an old technology that isn't used anymore.
2) What does MFC have to do with Winsock and Win32 in this context?
3) Does MFC have classes that would allow me to code IP
communications? Should I be using these, or taking class code samples
from a number of other forums?
With thanks
Lou Arnold
 
(e-mail address removed) (Lou Arnold) wrote in @nntp.flfrd.phub.net.cable.rogers.com:
I need some help or advice for coding client-server communications on
Windows 2000. All I really want is a small program for demo purposes.
I don't want to program a server that actually does anything but
confirm that its communicating with a few clients.
Here are some questions, but pardon my ignorance if they seem silly:
1) What's the difference, if any between Winsock and Win32. I thought
Winsock was an old technology that isn't used anymore.
2) What does MFC have to do with Winsock and Win32 in this context?
3) Does MFC have classes that would allow me to code IP
communications? Should I be using these, or taking class code samples
from a number of other forums?
With thanks
Lou Arnold

Hi Lou,

This is certainly not the right newsgroup for your question, better would
be alt.winsock.programming. But.....

1) Winsock is the Windows implementation of socket-based communications.
Win32 is the 32-bit programming API that is common to 32 bit version's of
Windows.

2) MFC is just another 'language' to do Windows programming in. Not
really another language, but another groups of libraries that are used. I
believe that it is actually C++ (I'm sure I'll be flamed if I'm wrong),
but it's implemented in pre-built classes that are instantiated, then
utilize the methods and properties of said classes.

3) Of course MFC has a Winsock class. You could use this if you want. You
could do it in VC++, in VB, in C#, etc.

I've written almost no code completely from scratch. I usually start out
with a sample from somewhere, then add to and modify as necessary to do
what I want to do.

There's a TON of good programming websites, one for example is planet-
source-code.com. I'm sure you can find many good examples there of what
you are trying to accomplish.

Regards,

DanS
 
Back
Top