ASFStreaming_SetAuthorization
Delphi
function ASFStreaming_SetAuthorization (Allowed: Boolean; IP: string; Mask: string): Boolean;
C++Builder
bool __fastcall ASFStreaming_SetAuthorization(bool Allowed, System::UnicodeString IP, System::UnicodeString Mask);
C#
public bool ASFStreaming_SetAuthorization(bool Allowed, string IP, string Mask);
VB.NET
Public Function ASFStreaming_SetAuthorization(Allowed As Boolean, IP As String, Mask As String) As Boolean
C++/Qt
BOOL ASFStreaming_SetAuthorization (BOOL Allowed, wchar_t *IP, wchar_t *Mask);
Prevents a specified IP address from connecting to the ASF streaming.
E.g:
- to block the 192.168.0.50 ip address:
ASFStreaming_SetAuthorization (false, '192.168.0.51', '255.255.255.255');
- to block all the IP addresses on 192.168.0.xxx:
ASFStreaming_SetAuthorization (false, '192.168.0.0', '255.255.255.0');