Re: Multithread safety



>
> I am not sure what exactly you mean by full-duplex in this context so I'll
> assume that you want to read and write simultaneously rather than in
> request-response fashion. In this case you need to break the BSD barrier
> and use asynchronous I/O offered by Winsock. Unless you need full Unix
> compatibility (and even then) it rarely makes sense to limit yourself to
> BSD-style sockets only. They were invented in a different world with
> different performance characteristics and application architectures than
> the one you develop for.
>

I understand! Would you advise me provide an interface similar
to CAsynchSocket in my library? Do you have any readings on the
subject?

I want to create myself a library usable both in console apps and
GUI apps. The idea of creating an hidden window to receive network
events sounds overkill to me.. but if its the way to go! Plus, it seems
that calls to reading and writing to the socket are a little serialized..
Another question: If someone is sending me a 1mb file, will I receive
hundreds of FD_READ message, even if I'm continuously reading
the socket?

I would need a good article on Winsock specific functions I guess :)

But you showed me the way to go, I'm on a start!

Mike


.



Relevant Pages

  • Re: help me with my understanding of WSPRecv/From
    ... WinSock has some MS-specific functions to employ the NT ... WinSock has a common provider DLL called MSAFD.DLL. ... AFD.SYS is a kernel module which implements the sockets semantics on top of ... This will give you lots of socket stuff, ...
    (microsoft.public.development.device.drivers)
  • Re: help me with my understanding of WSPRecv/From
    ... WinSock has some MS-specific functions to employ the NT ... WinSock has a common provider DLL called MSAFD.DLL. ... AFD.SYS is a kernel module which implements the sockets semantics on top of ... This will give you lots of socket stuff, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: help me with my understanding of WSPRecv/From
    ... WinSock has some MS-specific functions to employ the NT ... WinSock has a common provider DLL called MSAFD.DLL. ... AFD.SYS is a kernel module which implements the sockets semantics on top of ... This will give you lots of socket stuff, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Win Sock
    ... Something That Is Not a Socket" message. ... Then, instead of running NETSH to reset TCP/IP, he suggested reinstalling ... Open the properties window of the network connection (Local Area ... WinSock Fix ...
    (microsoft.public.windowsxp.newusers)
  • Re: non blocking sockets
    ... >> determined that the socket was ready. ... > Upon successful completion, the pselector selectfunction shall ... > arguments to indicate which file descriptors are ready for reading, ... > descriptor shall be considered ready for reading.) ...
    (comp.unix.programmer)