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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sending all bytes

Sending all bytes

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

    actually, i wanted to send multibytes to the machine, like 02 00 02 00 20 42 51 08 to a function through which we could send this data to a machine, but i am able to send one byte at a time, how is it possible to send all the bytes at a time to a function? shrin

    D 1 Reply Last reply
    0
    • S srija

      actually, i wanted to send multibytes to the machine, like 02 00 02 00 20 42 51 08 to a function through which we could send this data to a machine, but i am able to send one byte at a time, how is it possible to send all the bytes at a time to a function? shrin

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Use the send() function on one end and recv() on the other.


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      S 1 Reply Last reply
      0
      • D David Crow

        Use the send() function on one end and recv() on the other.


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        S Offline
        S Offline
        srija
        wrote on last edited by
        #3

        could you please give me detail idea on this..

        D 1 Reply Last reply
        0
        • S srija

          could you please give me detail idea on this..

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          See these: recv[^] send[^] example[^] sockets[^]


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "There is no death, only a change of worlds." - Native American Proverb

          S 1 Reply Last reply
          0
          • D David Crow

            See these: recv[^] send[^] example[^] sockets[^]


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "There is no death, only a change of worlds." - Native American Proverb

            S Offline
            S Offline
            srija
            wrote on last edited by
            #5

            Is this for win32 platform??

            D T 2 Replies Last reply
            0
            • S srija

              Is this for win32 platform??

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Check the bottom of the first two links. There it will show the requirements.


              "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

              "There is no death, only a change of worlds." - Native American Proverb

              1 Reply Last reply
              0
              • S srija

                Is this for win32 platform??

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                srija wrote:

                Is this for win32 platform??

                http://www.codeproject.com/internet/#Client%2FServer+Development[^]

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV

                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