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. Everytime I send data I lose the connection!

Everytime I send data I lose the connection!

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

    Hello, I always lose the connection to a client, when I send data and want to receive data again. I don't know why. :( 1. AcceptEx() 2. ReadFile() <- at this point I received the last data 3. WriteFile() <- I think I lose the connection at this point! 4. ReadFile() 5. WriteFile() 6. ReadFile() . . . ---- What am I doing wrong? ;) I hope you can help me, bond006

    V 1 Reply Last reply
    0
    • B bond006

      Hello, I always lose the connection to a client, when I send data and want to receive data again. I don't know why. :( 1. AcceptEx() 2. ReadFile() <- at this point I received the last data 3. WriteFile() <- I think I lose the connection at this point! 4. ReadFile() 5. WriteFile() 6. ReadFile() . . . ---- What am I doing wrong? ;) I hope you can help me, bond006

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

      Do you develop both the server and client? Kuphryn

      B 2 Replies Last reply
      0
      • V valikac

        Do you develop both the server and client? Kuphryn

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

        I only develop the server. The client is working well with other servers and it is open source.

        V 1 Reply Last reply
        0
        • V valikac

          Do you develop both the server and client? Kuphryn

          B Offline
          B Offline
          bond006
          wrote on last edited by
          #4

          double-post, because I got an error message first :(

          1 Reply Last reply
          0
          • B bond006

            I only develop the server. The client is working well with other servers and it is open source.

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

            Okay. It is up to the developers who are working on the client to get it to synchronize with your server. Kuphryn

            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