Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

catching Vectors throught the Streams and Sockets

 
karthik ts
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have no idea in sending and receiving the Vector's object into the stream and catching it back or in distributing the same to different sockets.
what r all the possibilities in doing it?
thanx;
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well,
I would ensure the class I was placing into the Vector implemented the Serializable interface. Then create a server and client as usual with the only difference being that I use ObjectInputStream and ObjectOutputStreams.
When you get a small sample running, please share it with us all to learn off of

------------------
Hope This Helps
Carl Trusiak
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!