Squeak and Multicast?
Andreas Raab
Andreas.Raab at gmx.de
Tue Jul 23 01:56:52 UTC 2002
Multicast is supported by the latest Windows VMs though the interface is
a bit obscure. You will have to pass byte arrays to
Socket>>setOption:to: describing either one or two ip addresses (see
socket documentation on it). The first ip describes the multi-cast group
to join, the second (if present) the interface to use. E.g., something
like:
socket setOption: 'IP_ADD_MEMBERSHIP'
to: (ByteArray with: 234 with: 5 with: 6 with: 7).
will set the multi-cast group on the socket to 234.5.6.7. If an
interface is passed in as well, the byte array must be of size 8 as in:
socket setOption: 'IP_ADD_MEMBERSHIP'
to: (ByteArray with: 234 with: 5 with: 6 with: 7
with: 1 with: 2 with: 3 with. 4).
Same for IP_DROP_MEMBERSHIP. Multicast support has been tested
successfully though not agressively.
Cheers,
- Andreas
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Kevin Fisher
> Sent: Tuesday, July 23, 2002 3:45 AM
> To: squeak-dev
> Subject: Squeak and Multicast?
>
>
> Hi Folks:
>
> Just a quick question...I've been dabbling with multicast
> (and wondering
> why it hasn't taken off more) and was wondering...does Squeak have any
> support at all for multicast, or is it straight TCP/UDP/IP?
>
>
More information about the Squeak-dev
mailing list
|