Developer

API Reference

IAddrInfo_GetResultAddr()

Brew Release
Brew MP 1.0.2
See Also
AEEAddrInfo Basic error codes Network AEE error codes
Description
This function retrieves a specific address information element query result, after the resolving transaction has completed.
Parameters
  • me
    []:
    the interface pointer
  • nAddrIndex
    [in]:
    zero based index of the address information element to retrieve.
  • pai
    [out]:
    pointer to the AEEAddrInfo to be filled in. The memory must be pre-allocated by the client.
  • pnAddrInfoBytes
    []:
    [in/out] : On
Interface
Prototype
   int IAddrInfo_GetResultAddr(IAddrInfo *me, int nAddrIndex, AEEAddrInfo* pai, int* pnAddrInfoBytes);
Return
AEE_SUCCESS: The query results were returned. EBADSTATE: The object is not in the proper state for the operation, i.e., no query was initiated. AEE_NET_EFAULT: Invalid buffer or argument has been specified.
Other error codes are also possible.
Side Effect
None.
Comment
In order to get the size of an address information element, use zero *pnAddrInfoBytes, i.e. addressSize = 0; IAddrInfo_GetResultAddr(me, index, NULL, &addressSize);
  • Follow