Next: Server-side Multicast API
Up: Reliable Multicast Protocol
Previous: Reliable Multicast Design issues
- int McastListen (char *UrlName)
A call to this function will initiate a join to a Multicast address
The URLName is mapped into a Multicast Address using a hash function.
A value of 1 is returned if the join was successful else
a value of 0 is returned. Before calling this function the
parameters for the MTP-2 web need to be set. A join can fail
if the parameters are not acceptable or the multicast reply was
not received from the Master node.
- int ReceiveMcastData(int Filefd)
This function receives data from the multicast address and
streams it to the file descriptor defined by Filefd. If the messages
are sequenced out of order, they are buffered and streamed out to
the file descriptor in order. If an error condition occurs the
receive is aborted with an return value 0. If the write to a
file descriptor fails, the code exits. On successfully receiving
the whole file the function returns a value of 1.
Matthew James Sanders
Wed Dec 2 16:23:52 EST 1998