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. Overlapped Connect

Overlapped Connect

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 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.
  • J Offline
    J Offline
    JT Anderson
    wrote on last edited by
    #1

    I'm working on a Winsock application using I/O completion ports. I can't find any flavor of connect() that uses OVERLAPPED I/O. Am I missing something? Any clever work-arounds? -------- There are 10 types of people in this world. Those who know binary and those who don't.

    V 1 Reply Last reply
    0
    • J JT Anderson

      I'm working on a Winsock application using I/O completion ports. I can't find any flavor of connect() that uses OVERLAPPED I/O. Am I missing something? Any clever work-arounds? -------- There are 10 types of people in this world. Those who know binary and those who don't.

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      Call WSAConnect(). Kuphryn

      J 1 Reply Last reply
      0
      • V valikac

        Call WSAConnect(). Kuphryn

        J Offline
        J Offline
        JT Anderson
        wrote on last edited by
        #3

        As far as I can tell, WSAConnect doesn't use OVERLAPPED, so it doesn't play that well with an I/O completion port. -------- There are 10 types of people in this world. Those who know binary and those who don't.

        V 1 Reply Last reply
        0
        • J JT Anderson

          As far as I can tell, WSAConnect doesn't use OVERLAPPED, so it doesn't play that well with an I/O completion port. -------- There are 10 types of people in this world. Those who know binary and those who don't.

          V Offline
          V Offline
          valikac
          wrote on last edited by
          #4

          Try ConnectEx(). Kuphryn

          J 1 Reply Last reply
          0
          • V valikac

            Try ConnectEx(). Kuphryn

            J Offline
            J Offline
            JT Anderson
            wrote on last edited by
            #5

            Thanks. I see it requires XP or later, but that might be acceptable. At first I wondered how I could have missed it, but then when I see where it was hidden in the Oct 2001 MSDN library (I'm still using VC6) I won't beat myself up too badly. -------- There are 10 types of people in this world. Those who know binary and those who don't.

            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