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. ATL / WTL / STL
  4. End a socket listen() operation

End a socket listen() operation

Scheduled Pinned Locked Moved ATL / WTL / STL
csharpc++visual-studiocomdebugging
3 Posts 2 Posters 7 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.
  • B Offline
    B Offline
    bkelly13
    wrote on last edited by
    #1

    Widows 7, Visual Studio 2008, C++, socket operations My app posts a listen using a socket set to non-blocking. The debugger steps over that line, with a noticeable pause, and continues. The netstat command showed that a listen was in progress. I can think of a few possibilities to end the listen(). 1. Client connects 2. Call some method to terminate the listen. 3. Delete the object that initiated the listen If the client does not connect, how should the app close the listen() operation?

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    A 1 Reply Last reply
    0
    • B bkelly13

      Widows 7, Visual Studio 2008, C++, socket operations My app posts a listen using a socket set to non-blocking. The debugger steps over that line, with a noticeable pause, and continues. The netstat command showed that a listen was in progress. I can think of a few possibilities to end the listen(). 1. Client connects 2. Call some method to terminate the listen. 3. Delete the object that initiated the listen If the client does not connect, how should the app close the listen() operation?

      Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      Typically in Windows just closing the socket causes the listen to terminate.

      B 1 Reply Last reply
      0
      • A Albert Holguin

        Typically in Windows just closing the socket causes the listen to terminate.

        B Offline
        B Offline
        bkelly13
        wrote on last edited by
        #3

        I will do it that way. Thank you.

        Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

        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