![]() |
|
SSP_MULTICASTSection: User Manuals (3)Updated: JULY 2001 NAMESSP_multicast, SSP_scat_multicast - Multicast message to groupsSYNOPSIS#include <ssp.h>
int SSP_multicast(mailbox mbox, service service_type, const char *group, int16 mess_type, int mess_len, const char *mess);
DESCRIPTIONSSP_multicast and its variants all can multicast a message to a group. The message is sent on a particular connection and is marked as having come from the connection who sent it. The service_type is a type field that should be set to the service this message requires. The valid flags for messages are:
This type can be bit ORed with other flags like SELF_DISCARD or ENCRYPT_MESS if desired. SELF_DISCARD specifies that the message is sent to all the members of the group, but the sender and ENCRYPT_MESS specifies that the message will be encrypted. The group string should include the name of the group to send to. The group has a string name of no more then MAX_GROUP_NAME chars. The mess_type is a SHORT int (16 bits) which can be used by the application arbitrarily. The intent is that it could be used to NAME different kinds of data messages so they can be differentiated without looking into the body of the message. This value will be endian corrected before receiving. If the non-scatter varients are being used then a single buffer is passed to the multicast call specifying the full message to be sent. The mess_len field gives the length in bytes of the message. While the mess field is a pointer to the buffer containing the message. For a scatter call both of these are replaced with one pointer, scat_mess, to a scatter structure, which is just like an iovec. This allows messages made up of several parts to be sent without an extra copy on systems which support scatter-gather. RETURN VALUESReturns the number of bytes sent on success or one of the following errors ( < 0 ):
BUGSNone.AUTHORCristina Nita-Rotaru <crisn@cnds.jhu.edu>
IndexThis document was created by man2html, using the manual pages. Time: 21:15:38 GMT, July 06, 2001
|