Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

adsGetLocalAddressEx

Returns the local NetId and the own port number (thread-safe).

long adsGetLocalAddressEx (
  long     lj_port,
  AmsAddr  lj_AmsAddr
);

Parameter

  • long: lj_port port number of an ADS port that had previously been opened with AdsPortOpenEx or AdsPortOpen.
  • AmsAddr lj_AmsAddr: AmsAddr object which contains the local NetId and port number after the call.

Return value

long: returns the error state of the function.