Project

General

Profile

$portfree » History » Revision 2

Revision 1 (Per Amundsen, 08/11/2015 01:39 PM) → Revision 2/3 (Per Amundsen, 06/12/2016 06:18 AM)

_Added in 1.9.0_ 

 *$portfree(N,[ipaddress])* 

 Returns [[$true]] if the specified port number is not in use, otherwise [[$false]]. 

 *Parameters* 

 N - The port number to check. 
 [ipaddress] - If specified, only the interface with that IP address is checked for used ports, otherwise all active interfaces are checked. An adapter name can also be used instead of an IP address. TODO 

 *Example* 

 <pre> 
 ; Check if port 4242 is free. 
 //echo -ag Port 4242 is $iif($portfree(4242), open, not open) 
 </pre>