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. How could it be Sending & Receiving Object of user class through Socket ?

How could it be Sending & Receiving Object of user class through Socket ?

Scheduled Pinned Locked Moved C#
sysadminquestionworkspace
1 Posts 1 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.
  • M Offline
    M Offline
    MehmetFurkan
    wrote on last edited by
    #1

    Recently, I have developped a system on a network environment (Pc <--> PDA) that makes data transfere between these endpoints using WEBSERVICE mechanism. Unforunatley I have to cancel the way of WebService, cause of rarely-arising but undefined and unbearable slow-down of the communication. So I am planing to migrate my system to Socket mechanism. At the first look at Socket class, I see that it seems impossible to pass objects of my own-defined classes that represents the data structure. It seems no way to send/receive "Object" using nor Socket methods, neihter Streams via NetworkStream class. and I see that data transmission is completely based on "bytes" and "bytes & char arrays".. Or Am I wrong ?. (I hope so) What can I do? I just dont want to struggle with bytes. Instead using my existing classes, I just send my objects that includes only standart data types (int, bool, string) Thanks to all

    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