IAPI::IsSocketPortActive

property IsSocketPortActive.

Checks whether a socket port is active from a tcp/ip server.

 

HRESULT IsSocketPortActive(
  BSTR hostNameAndPort,
  long *pVal
);

Parameters

hostNameAndPort

[in] . hostname or IP address + ":" + PortNumber (e.g "localhost:8088")

pVal

[out, retval] The returned value is 0 (down) or 1 (up)

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI