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. Socket

Socket

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
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.
  • C Offline
    C Offline
    cberam
    wrote on last edited by
    #1

    Hi, In my MFC app, i create a socket , bind and accept incoming connections. After i accept a incoming connection, i try to use recv() to get data. But it fails.the error is 10057. what could be the problem..Pls help Ram

    I A 2 Replies Last reply
    0
    • C cberam

      Hi, In my MFC app, i create a socket , bind and accept incoming connections. After i accept a incoming connection, i try to use recv() to get data. But it fails.the error is 10057. what could be the problem..Pls help Ram

      I Offline
      I Offline
      itkid
      wrote on last edited by
      #2

      A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.

      1 Reply Last reply
      0
      • C cberam

        Hi, In my MFC app, i create a socket , bind and accept incoming connections. After i accept a incoming connection, i try to use recv() to get data. But it fails.the error is 10057. what could be the problem..Pls help Ram

        A Offline
        A Offline
        Alexander M
        wrote on last edited by
        #3

        Are you sure you called recv for the right socket? The listening socket won't allow that!! Don't try it, just do it! ;-)

        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