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#
  4. Sending data

Sending data

Scheduled Pinned Locked Moved C#
questiondata-structurestutorial
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.
  • T Offline
    T Offline
    The underdog
    wrote on last edited by
    #1

    Hi Ppl, I have a small question. Is it possible to use sendto to send entire structs / arrays with a few commands? Right now i have a function to create one long string and an other one to make it back to an array but this kind of in efficient and the data u can send is pretty limited. Can anyone tell me how to send data in an efficient way? Kind regards , Jacco

    L 1 Reply Last reply
    0
    • T The underdog

      Hi Ppl, I have a small question. Is it possible to use sendto to send entire structs / arrays with a few commands? Right now i have a function to create one long string and an other one to make it back to an array but this kind of in efficient and the data u can send is pretty limited. Can anyone tell me how to send data in an efficient way? Kind regards , Jacco

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

      You could use a BinaryFormatter to serialize your data into a byte array and then just send it. Here is an example: http://msdn2.microsoft.com/en-us/library/4abbf6k0.aspx Just use a MemoryStream instead of a FileStream regards

      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