M_Furcadia_Net_Utils_Utilities_PortOpen - StarShip-Avalon-Projects/FurcadiaFramework GitHub Wiki
This stuff is still in the planning stages. Any questions or Comments are welcome. [This is preliminary documentation and is subject to change.]
Checks TCP port and scans for an available TCP port on the host system
Namespace: Furcadia.Net.Utils
Assembly: FurcadiaLib (in FurcadiaLib.dll) Version: 2.19.PreAlpha 43
C#
public static bool PortOpen(
int port
)
VB
Public Shared Function PortOpen (
port As Integer
) As Boolean
VB Usage
Dim port As Integer
Dim returnValue As Boolean
returnValue = Utilities.PortOpen(port)
C++
public:
static bool PortOpen(
int port
)
F#
static member PortOpen :
port : int -> bool
- port
- Type: System.Int32
ref TCP Port
Type: Boolean
True when a port is found available
Exception | Condition |
---|---|
ArgumentException | Thrown when port is 0 |