Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 697
  • Last Modified:

Using asynchronous sockets - winsock

Could someone tell me where I can find sample code to connect to a server using asynchronous sockets?  

I would prefer using winsock rather than the CAsyncSocket.

0
jewee
Asked:
jewee
3 Solutions
 
novitiateCommented:
You can find some code snippets here
http://www.hydrairc.com/doxygen/Socket_8cpp-source.html

_novi_
0
 
jkrCommented:
I'd suggest taking a look at http://win32.mvps.org/network/sockhim.html which uses sockets with IO completion ports.
0
 
topdog770Commented:
Just another link: http://tangentsoft.net/wskfaq/examples/basics/

http://www.codeguru.com/forum/showthread.php?t=326666

Both of these links offer multiple examples, showing different types of connections and roles.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now