16
DirectShow Programming
3.3.3
SetUnicastGroup / SetMulticastGroup
The SetUnicastGroup / SetMulticastGroup methods set the group
that the filter will send or listen to.
Syntax
HRESULT SetUnicastGroup(
ULONG ulIP,
USHORT usPort
);
HRESULT SetMulticastGroup(
ULONG ulIP,
USHORT usPort
);
Parameters
ulIP
Specifies the IP address in network order (bytes ordered from left
to right). You can use the inet_addr function to convert a standard
dotted-format string (such as “255.255.255.255”) to the correct
binary number.
usPort
Specifies the port number, in TCP/IP network byte order. You can
use the htons function to convert the port number to the correct
byte order.
Return values
Value
Description
E_INVALIDARG
Invalid IP address.
E_UNEXPECTED
The operation could not be performed
because the filter is not stopped.
S_OK
The method succeeded.
Summary of Contents for PCI-MPG24
Page 4: ......
Page 7: ...List of Tables iii List of Tables Table 2 1 Include Files 4 Table 2 2 Library File 4 ...
Page 8: ...iv List of Tables ...
Page 10: ...2 Introduction ...
Page 17: ...DirectShow Programming 9 ADLink Unicast Receiver ...
Page 18: ...10 DirectShow Programming ADLink Multicast Sender ...
Page 20: ...12 DirectShow Programming Unicast Receiver Preview File Save Multicast Sender ...
Page 36: ...28 DirectShow Programming ...
Page 51: ...Windows API Functions 43 Return Values See chapter 4 5 ...