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. how i can use AsyncSelect

how i can use AsyncSelect

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 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.
  • U Offline
    U Offline
    User 3650979
    wrote on last edited by
    #1

    hi friends, i wrote one protocal...facing problem...please help any bogy before Lisening i am dedicating socket p.AsyncSelect(FD_ACCEPT); i am Accepting All the Connections.... next i want to do Sent and recieve repately....but after Accepting Connections its not going sent.. i am using CAsyncSocket(OnAccept,OnSent,OnRecieve)...

    M 1 Reply Last reply
    0
    • U User 3650979

      hi friends, i wrote one protocal...facing problem...please help any bogy before Lisening i am dedicating socket p.AsyncSelect(FD_ACCEPT); i am Accepting All the Connections.... next i want to do Sent and recieve repately....but after Accepting Connections its not going sent.. i am using CAsyncSocket(OnAccept,OnSent,OnRecieve)...

      M Offline
      M Offline
      Moak
      wrote on last edited by
      #2

      Quick tip: Leave AsyncSelect() alone, most time you don't need to play with these values. Socket objects inherit their notification event settings from the listening socket or more precisely from the socket that accepts them. If you use any of the notification handler OnSent/OnRecieve/OnClose in your socket objects you need the corresponding FD_WRITE/FD_READ/FD_CLOSE events[^] too. Until you do some superduper-fine-tuning, just stick with the defaults. Hope this helps. :) /M

      Chat in Europe :java: Now with 24% more Twitter

      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