Back: Sockets.IPAddress-printing Up: Sockets package Forward: Sockets.MulticastSocket-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

6.13 Sockets.MulticastSocket

Defined in namespace Sockets
Superclass: Sockets.DatagramSocket
Category: Sockets-Streams

This class models a multicast socket that sends packets to a multicast group. All members of the group listening on that address and port will receive all the messages sent to the group.

In the TCP/IP world, these sockets are UDP-based and a multicast group consists of a multicast address (a class D internet address, i.e. one whose most significant bits are 1110), and a well known port number.

6.13.1 Sockets.MulticastSocket: instance creation  (instance)


6.13.1 Sockets.MulticastSocket: instance creation

interface
Answer the local device supporting the multicast socket. This is usually set to any local address.

interface: ipAddress
Set the local device supporting the multicast socket. This is usually set to any local address.

join: ipAddress
Join the multicast socket at the given IP address

leave: ipAddress
Leave the multicast socket at the given IP address

nextPut: packet timeToLive: timeToLive
Send the datagram with a specific TTL (time-to-live)

timeToLive
Answer the socket's datagrams' default time-to-live

timeToLive: newTTL
Set the default time-to-live for the socket's datagrams



Back: Sockets.MulticastSocket Up: Sockets.MulticastSocket Forward: Sockets.MulticastSocketImpl   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on April, 16 2013 using texi2html