- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigLinux/Generators/CheckPorts.php
r874 r887 3 3 class ConfigCheckPorts extends NetworkConfigItem 4 4 { 5 function CheckPortStatus($IP, $Port, $Protocol = 'tcp') 5 function CheckPortStatus($IP, $Port, $Protocol = 'tcp'): int 6 6 { 7 7 $Timeout = 1; … … 17 17 return $State; 18 18 } 19 20 function CheckPorts() 19 20 function CheckPorts(): void 21 21 { 22 22 $StartTime = time(); … … 77 77 } 78 78 79 function Run() 79 function Run(): void 80 80 { 81 81 RepeatFunction(60, array($this, 'CheckPorts'));
Note:
See TracChangeset
for help on using the changeset viewer.