Export (0) Print
Expand All

PGM Socket Options

PGM uses socket options to set state, provide multicast parameters, and otherwise implement its multicast capabilities. This page specifies how PGM socket options should be set, enumerates the socket options available for PGM, and where appropriate, provides usage examples and additional information for various options. For basic definitions of each PCM socket option, see Socket Options.

Windows XP:  Reliable Multicast Programming (PGM) is not supported.

The following socket options are available for PGM senders:

RM_LATEJOIN
RM_RATE_WINDOW_SIZE
RM_SEND_WINDOW_ADV_RATE
RM_SENDER_STATISTICS
RM_SENDER_WINDOW_ADVANCE_METHOD
RM_SET_MCAST_TTL
RM_SET_MESSAGE_BOUNDARY
RM_SET_SEND_IF
RM_USE_FEC

The RM_SENDER_WINDOW_ADVANCE_METHOD option specifies the method used when advancing the trailing edge send window. The optval parameter can only be E_WINDOW_ADVANCE_BY_TIME (the default). Note that E_WINDOW_USE_AS_DATA_CACHE is not supported.

The following socket options are available for PGM receivers:

RM_ADD_RECEIVE_IF
RM_DEL_RECEIVE_IF
RM_HIGH_SPEED_INTRANET_OPT
RM_RECEIVER_STATISTICS

Setting PGM Socket Options

The following code snippet illustrates a programming guideline for setting PGM socket options:




ULONG       OptionData;    // This structure is option-dependent
//     :
setsockopt (s,
            IPPROTO_RM,
            Socket_Option,
            (char *) &OptionData,
            sizeof (OptionData));




In the snippet above, the type and contents of OptionData are dependent on the socket option being set. For all PGM socket options, the socket level is IPPROTO_RM. PGM socket options must be set immediately following the call to the bind function, with the following exceptions:

RM_SET_MESSAGE_BOUNDARY
RM_SENDER_STATISTICS
RM_RECEIVER_STATISTICS

 

 

Community Additions

ADD
Show:
© 2014 Microsoft