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

passing object to methods by sockets

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all;
My question is this...

I know how to pass serialized objects over a socket to a server using Socket.getOutputStream() and Sockte.getOutputStream(), however I don't know how to call methods within a server passing objects or receiving objects from a called method on the server. Does anybody know how this can be done?

Thank You, in advance.
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you could give us an example of some code that's giving you trouble? If you want to invoke a method on on a serialized object, you do it the same way you do with any other object:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!