This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

catching Vectors throught the Streams and Sockets  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!