CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    Sending objects over sockets.



    Hi there,

    I want to send an object containing an integer and a Vector (which holds in it other objects I defined) from my server application to a client.

    I implemented the Serializable Interfaces for all of these objects and I use InputObjectStream & OutputObjectStream to send and receive from the sockets.

    How ever something goes wrong there.

    Question : Theoreticaly, should this work or do I have to use things like RMI to read & write objects when doing it over the network ?


    Thanks,

    Omer S.



  2. #2
    Join Date
    Mar 1999
    Posts
    7

    Re: Sending objects over sockets.



    Hye,


    Theretically, this does work and you have to try and try cos' it will. Check your code again cos' it worked for me.

    RMI is definitely an easier approach, give it a shot cos' it's dead easy!

    Anyways, what went wrong? Did you downcast the object correctly?


    Answer....


    Long Live Java..


    davender aka JaVaFLow

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured