Re: sockets in MFC
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 07 Jun 2005 21:53:19 -0400
Quinn and Shute, Windows Sockets Network Programming
Comer and Stevens, Internetworking with TCP/IP Vol III (Windows edition--there's also a
Unix edition, make sure you get the right one).
Pieces of code do not require sockets. You need to state what you are doing more clearly.
Note that you should study CAsyncSocket in MFC. Avoid CSocket, it basically can't ever
work right. There are good CAsyncSocket examples in the MSDN. Example: having read the two
above books, I was able to integrate socket programming into a product in three days,
because the client wanted UDP sockets. After evaluating what I'd done, he asked "Can you
add TCP/IP also?". It took me another day. Most of those three days were doing things like
writing the GUI interface to support socket connections and getting the low-level
interfaces to the sockets working. The asynchronous socket programming followed the MSDN
examples and went in very quickly.
joe
On Tue, 7 Jun 2005 14:07:03 -0700, "RM" <RM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Greetings,
>I am new to Socket programming. I have a couple of questions. Is there any
>good book which I could use to do Socket Prog. in MFC.
>Also if I have a piece of code that needs to communicate to more than one
>piece of code (say 4), do I need to create 4 socket objects.
>thanks in advance,
>best regards
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- sockets in MFC
- From: RM
- sockets in MFC
- Prev by Date: Exception opening an MFC document off a CD-Rom in VS2003
- Next by Date: Re: Custom CWindow Class
- Previous by thread: sockets in MFC
- Next by thread: Re: sockets in MFC
- Index(es):
Relevant Pages
|