Re: Advice on Writing my own socket code vs using MFC built in classes

Tech-Archive recommends: Speed Up your PC by fixing your registry



"justmehere" <inderpaul_s@xxxxxxxxx> wrote in message news:4ef88fae-737b-456d-9a85-2ee2d68c7761@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 23, 1:04 pm, justmehere <inderpau...@xxxxxxxxx> wrote:
I have created a MFC based application and now have gotten to the part
of writing the sockets programming part of it. My only question is
should I use the built in classes provided by MFC or should I write my
own. I have read somewhere that using MFC may be more difficult.

Any suggestions or advice would be appreciated.

What I am building in my application is a FTP server. Also the
question is using sockets better with MFC or using Winsock API with my
existing application that is written in MFC ?

CAsyncSocket is reliable and offers a few conveniences over writing your own socket code. If you know enough to write your own winsock code then CAsyncSocket will be quite obvious: It is a rather thin wrapper around async winsock with message notifications. I highly recommend it.

CSocket is a nightmare invention that seems to have been dreamed up by a summer intern who left the company 15 years ago.

--
Scott McPhillips [VC++ MVP]

.



Relevant Pages

  • Re: Advice on Writing my own socket code vs using MFC built in classes
    ... "justmehere" wrote in message ... question is using sockets better with MFC or using Winsock API with my ... existing application that is written in MFC? ...
    (microsoft.public.vc.mfc)
  • Re: MFC Interview Tests
    ... None of them are an MFC question. ... How would you implement user-defined messages in an MFC app? ... Why don't you need LPCTSTR casts to pass a CString to most API calls? ... Asynchronous sockets in a single separate thread ...
    (microsoft.public.vc.mfc)
  • Re: Sockets and Forwarding On Java
    ... writing non-text characters from/to network sockets? ... sockets, and what came through one had to be copied over to the other, I ... stream while another one is writing to its input stream -- or with ... Linux when I tried that. ...
    (comp.lang.java.help)
  • CAsyncSocket in service
    ... I have an MFC application that has been running well for a long time. ... The client now wants it converted to run as a service, interfacing ... the sockets do not seem to run. ... CWinThread does not seem to be running a message pump. ...
    (microsoft.public.vc.mfc)
  • Re: Regarding CArchive,Files and CSockets
    ... Essentially each connection on the client/server side uses this type of code: ... CSocketFile and CArchive classes to allow data to be streamed into out of the ... Years ago I first learned about sockets in MFC the way you are going: ...
    (microsoft.public.vc.mfc)