Re: sending objects over sockets?
From: Roedy Green (roedy_at_seewebsite.com)
Date: 10/25/03
- Next message: Joe: "Re: sending objects over sockets?"
- Previous message: Don: "sending objects over sockets?"
- In reply to: Don: "sending objects over sockets?"
- Next in thread: Joe: "Re: sending objects over sockets?"
- Reply: Joe: "Re: sending objects over sockets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 20:43:56 GMT
On 25 Oct 2003 13:03:06 -0700, donalmurtagh@yahoo.co.uk (Don) wrote or
quoted :
>Is it possible to do
>something similar with a UDP MulticastSocket? If so, how do you
>send/receive the object?
All you need do is write the object to a byte array. See
http://mindprod.com/fileio.html for how. Then you can bundle that
byte array as your payload in a UDP or Multicast UDP packet. The only
catch is just how long can the packet be? I don't know off the top of
my head how big a UDP packet can be, but I would think it would be in
the order of 128 bytes or so, unless there is some sort of packet
reassembly protocol for jumbo packets now functioning.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Joe: "Re: sending objects over sockets?"
- Previous message: Don: "sending objects over sockets?"
- In reply to: Don: "sending objects over sockets?"
- Next in thread: Joe: "Re: sending objects over sockets?"
- Reply: Joe: "Re: sending objects over sockets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|