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. A problem regarding EOT

A problem regarding EOT

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

    Dear friends, I am a POS developer, my question is im send some request to some different server then that person send me to resonse with some EOT i want get this response without this EOT how can i do this using C..please help me. thank you.

    L 1 Reply Last reply
    0
    • C chahthuranga

      Dear friends, I am a POS developer, my question is im send some request to some different server then that person send me to resonse with some EOT i want get this response without this EOT how can i do this using C..please help me. thank you.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can't, if the message contains that character or sequence then you need to deal with it.

      Veni, vidi, abiit domum

      C 1 Reply Last reply
      0
      • L Lost User

        You can't, if the message contains that character or sequence then you need to deal with it.

        Veni, vidi, abiit domum

        C Offline
        C Offline
        chahthuranga
        wrote on last edited by
        #3

        how can i deal with that..

        L 1 Reply Last reply
        0
        • C chahthuranga

          how can i deal with that..

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          How can you deal with what? Remember, we cannot see your code or read your mind, so we have no idea what the problem may be unless you provide clear details.

          Veni, vidi, abiit domum

          C 1 Reply Last reply
          0
          • L Lost User

            How can you deal with what? Remember, we cannot see your code or read your mind, so we have no idea what the problem may be unless you provide clear details.

            Veni, vidi, abiit domum

            C Offline
            C Offline
            chahthuranga
            wrote on last edited by
            #5

            yes im sorry... server_send_packet(sockt,DownCofig_PARAM_OBJ.transmitData); //Think some third party give me to some library and i want to send my data to that library then that //library some data called "transmitData" .Then i send this data to the server. server_rcv_packet(sockt,rcv,300,0); //then server response i take to this rcv buffer and send to library.So this rcv data has EOT(0x04) i want read this rcv buffer data until this EOT so how can i do this.

            L 1 Reply Last reply
            0
            • C chahthuranga

              yes im sorry... server_send_packet(sockt,DownCofig_PARAM_OBJ.transmitData); //Think some third party give me to some library and i want to send my data to that library then that //library some data called "transmitData" .Then i send this data to the server. server_rcv_packet(sockt,rcv,300,0); //then server response i take to this rcv buffer and send to library.So this rcv data has EOT(0x04) i want read this rcv buffer data until this EOT so how can i do this.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              You should use a loop to keep calling recv until there is no more data, or the EOT character has been received. You can then remove the EOT character from the buffer and send the remainder of the message to the library.

              Veni, vidi, abiit domum

              C 1 Reply Last reply
              0
              • L Lost User

                You should use a loop to keep calling recv until there is no more data, or the EOT character has been received. You can then remove the EOT character from the buffer and send the remainder of the message to the library.

                Veni, vidi, abiit domum

                C Offline
                C Offline
                chahthuranga
                wrote on last edited by
                #7

                Dear friend don't get mis understand me iam new to this ....i already try to your solution,but i did that rcv buffer length ,how can i identify this EOT character i mean if there is some standard way or something

                L 1 Reply Last reply
                0
                • C chahthuranga

                  Dear friend don't get mis understand me iam new to this ....i already try to your solution,but i did that rcv buffer length ,how can i identify this EOT character i mean if there is some standard way or something

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  You need to search the receive buffer for it.

                  Veni, vidi, abiit domum

                  C 1 Reply Last reply
                  0
                  • L Lost User

                    You need to search the receive buffer for it.

                    Veni, vidi, abiit domum

                    C Offline
                    C Offline
                    chahthuranga
                    wrote on last edited by
                    #9

                    Thank u very much my dear friend really appreciate your help.

                    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