AdsGetLocalAddressEx

Returns the local NetId and port number.

LONG AdsGetLocalAddressEx(
     long  port, PAmsAddr pAddr
);

Parameters

port

[in] port number of an Ads port that had previously been opened with AdsPortOpenEx or AdsPortOpen.

pAddr

[out] Pointer to the structure of type AmsAddr.

Return value

Returns the function's error status.

Example

See example 2.