Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IO Completion ports

IO Completion ports

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haritadala
    wrote on last edited by
    #1

    Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India

    G L 2 Replies Last reply
    0
    • H haritadala

      Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      You could follow the link below and start by reading Len Holgate's series - 3 articles in this series, plus some extra 'offshoots' http://www.codeproject.com/internet/jbsocketserver1.asp[^] 'G'

      1 Reply Last reply
      0
      • H haritadala

        Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        we have a server app that used to create a thread for each connection. This was fine for 100 users but was too slow for 1000's of connections I changed it to use asynchronous io and a completion port with a fixed number of threads, one listener, one receiver, one worker per cpu and a couple of others for timing, cache purging etc. The listener accepts connections and assosiates them with the completion port, the receiver waits on the completion port and generates job objects based on the received message. These are then queued and processed by the worker threads. This has worked very well in production (most customers have very high end multiprocessor boxes) with 1000's of connections

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups