|
Attributes in WSAPROTOCOL_INFO struct
In support of the taxonomy described above, three attribute fields in the WSAPROTOCOL_INFO structure are use to distinguish the different schemes used in the control
and data planes respectively:
- XP1_SUPPORT_MULTIPOINT with a value of 1 indicates this protocol entry
supports multipoint communications, and that the following two fields are meaningful.
- XP1_MULTIPOINT_CONTROL_PLANE indicates whether the control plane is rooted
(value = 1) or non-rooted (value = 0).
- XP1_MULTIPOINT_DATA_PLANE indicates whether the data plane is rooted (value =
1) or non-rooted (value = 0).
Note that two WSAPROTOCOL_INFO entries would be present if a multipoint
protocol supported both rooted and non-rooted data planes, one entry for each.
The application can use WSAEnumProtocols to discover whether multipoint communications is supported for a given
protocol and, if so, how it is supported with respect to the control and data planes,
respectively.
Flag bits for WSASocket
In some instances sockets joined to a multipoint session may have some
behavioral differences from point-to-point sockets. For example, a d_leaf socket in a
rooted data plane scheme can only send information to the d_root participant.
This creates a need for the application to be able to indicated the intended use
of a socket coincident with its creation. This is done through four flag bits
that can be set in the dwFlags parameter to WSASocket:
- WSA_FLAG_MULTIPOINT_C_ROOT, for the creation of a socket acting as a c_root,
and only allowed if a rooted control plane is indicated in the corresponding
WSAPROTOCOL_INFO entry.
- WSA_FLAG_MULTIPOINT_C_LEAF, for the creation of a socket acting as a c_leaf,
and only allowed if XP1_SUPPORT_MULTIPOINT is indicated in the corresponding
WSAPROTOCOL_INFO entry.
- WSA_FLAG_MULTIPOINT_D_ROOT, for the creation of a socket acting as a d_root,
and only allowed if a rooted data plane is indicated in the corresponding
WSAPROTOCOL_INFO entry.
- WSA_FLAG_MULTIPOINT_D_LEAF, for the creation of a socket acting as a d_leaf,
and only allowed if XP1_SUPPORT_MULTIPOINT is indicated in the corresponding
WSAPROTOCOL_INFO entry.
Note that when creating a multipoint socket, exactly one of the two control
plane flags, and one of the two data plane flags must be set in WSASocket's dwFlags parameter. Thus, the four possibilities for creating multipoint sockets are:
"c_root/d_root", "c_root/d_leaf", "c_leaf/d_root", or "c_leaf /d_leaf".
SIO_MULTIPOINT_LOOPBACK command code for WSAIoctl
When d_leaf sockets are used in a non-rooted data plane, it is generally
desirable to be able to control whether traffic sent out is also received back on
the same socket. The SIO_MULTIPOINT_LOOPBACK command code for WSAIoctl is used to enable or disable loopback of multipoint traffic.
SIO_MULTICAST_SCOPE command code for WSAIoctl
When multicasting is employed, it is usually necessary to specify the scope
over which the multicast should occur. Scope is defined as the number of routed
network segments to be covered. A scope of zero would indicate that the
multicast transmission would not be placed "on the wire" but could be disseminated
across sockets within the local host. A scope value of one (the default) indicates
that the transmission will be placed on the wire, but will not cross any
routers. Higher scope values determine the number of routers that may be crossed.
Note that this corresponds to the time-to-live (TTL) parameter in IP multicasting.
The function WSAJoinLeaf is used to join a leaf node into the multipoint session. See below for a
discussion on how this function is utilized.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime without manual coding. Full C# source codes are available More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|