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. Visual Basic
  4. Copying structures to string buffer and back

Copying structures to string buffer and back

Scheduled Pinned Locked Moved Visual Basic
sysadminquestion
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.
  • F Offline
    F Offline
    fromtheotherbay
    wrote on last edited by
    #1

    We are using a proprietary string buffer protocol via TCP/IP to transfer string buffers back and forth from the server. In this process, we need to be able to reliably overlay structures onto string buffers and vice versa. The structures can have strings, arrays, chars, dates, numbers as their members. Can someone suggest a reliable way to accomplish this please? soumya

    R 1 Reply Last reply
    0
    • F fromtheotherbay

      We are using a proprietary string buffer protocol via TCP/IP to transfer string buffers back and forth from the server. In this process, we need to be able to reliably overlay structures onto string buffers and vice versa. The structures can have strings, arrays, chars, dates, numbers as their members. Can someone suggest a reliable way to accomplish this please? soumya

      R Offline
      R Offline
      Reuven Elliassi
      wrote on last edited by
      #2

      I understand from your things that you transfer the string, so u want to translate a structure into a string. one way i think about is to convert the structure into bytes and then decode it back. for each structure you may need some signs, like: 123 mean start to transfer array. 221 mean start one array layer and 122 mean finish transfer the layer. etc.

      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