mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration. Fixes #19
14 lines
354 B
PowerShell
14 lines
354 B
PowerShell
function Send-IcingaTCPClientMessage()
|
|
{
|
|
param(
|
|
[Hashtable]$Message = @{},
|
|
[System.Net.Security.SslStream]$Stream = $null
|
|
);
|
|
|
|
if ($null -eq $Message -Or $Message.Count -eq 0 -Or $Message.length -eq 0) {
|
|
return;
|
|
}
|
|
|
|
$Stream.Write($Message.message, 0, $Message.length);
|
|
$Stream.Flush();
|
|
}
|