• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

serialization with sockets

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Here's another question for you, with regard to serialization and sockets:

ok I'm coming out of the closet. I coded a socket solution! There I feel better already

I've read the books, followed the tutorials but found sockets to be more intuitive and easier to work with.

However there's one point that I do not understand and cant find (or skipped over) relevant information. Why do some tutorials/examples use serialization with sockets and others not.
I've coded sockets with serialization (because its a requirement).

What is the defining moment when you should/ should not serialize with sockets?



Regards, Robert.
 
Rancher
Posts: 175
Clojure Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Robert Benson wrote:ok I'm coming out of the closet. I coded a socket solution! There I feel better already


You're not alone!

Why do some tutorials/examples use serialization with sockets and others not. I've coded sockets with serialization (because its a requirement).

What is the defining moment when you should/ should not serialize with sockets?



Serialization without sockets: for example, when you want to persist an object graph to the file system.
Sockets without serialization: for example, html or plaintext streaming.
reply
    Bookmark Topic Watch Topic
  • New Topic