• 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

sending objects thorough socket connection

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay,
I want to connect to another machine (using a simple socket connection), and then I want to setup my in/out streams so I can send objects over the wire (and also receive them). Can i do this with simple socket connections?
For example, I want to send certificate objects through the connection..
(i cannot use SSL)

Am i doing it right
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See if ObjectInputStream and OutputStream do the job for you. From the doc: "uses include passing objects between hosts using a socket stream or for marshaling and unmarshaling arguments and parameters in a remote communication system."
 
J Krem
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i'll look into the objectstream..thanks
Also, i wanted to find out if i can use keymanagerfactory and trustmanagerfactory with normal sockets or do i HAVE to use SSL sockets?
You see i want to manage keys and certificates across a normal socket connection..not using ssl..what is the best course of action?
Thank you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic