Results 1 to 3 of 3

Thread: sending various objects

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    sending various objects

    Is there a way to send various objects using the TCP socket to the client? (and recieving)

    for example, I may wish to send or recieve text, numbers or an arraylist and so on... is there a way to send objects as well as recieving them using the TCP Socket?

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: sending various objects

    I think you'd have to serialize them first. Using Socket.Send() or Socket.BeginSend(), the data you send is an array of bytes.

    You may want to look into remoting if you want to send/receive objects.

    Mike

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: sending various objects

    ah ok. I know how to send and recieve items... its just objects I am more concerned about.

    any more advice/tips?

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