connectionlist IsPortListening method
Return to Introduction  Previous page  Next page
Applies to
acConnectionList component.  

function IsPortListening(Port: Word; Proto: TacConnectionProto = pAny): Boolean;  

The IsPortListening method checks whether the specified Port currently in use. Optionally you can specify Proto parameter, if you wish to check some certain TCP or UDP port.  

See also
FindConnectionByLocalPort, FindConnectionByRemotePort, FindConnectionByLocalIPStr, FindConnectionByRemoteIPStr,  
FindLocalIPStrByLocalPort, FindLocalIPStrByRemotePort, FindRemoteIPStrByLocalPort and FindRemoteIPStrByRemotePort methods.