OpenDOF Project
int(* DTLTransport::AddressCompare)(DTLTransport transport, uint32 size, const void *addr1, const void *addr2)

Compares two transport addresses.

This callback may be NULL if PCRMem_Compare is sufficient to determine equality.

Parameters
transportThe Transport. This parameter must not be NULL.
sizeThe size in bytes of the transport addresses.
addr1The first address to compare. The address must be associated with the transport. This parameter will never be NULL.
addr2The second address to compare. The address must be associated with the transport. This parameter will never be NULL.
Returns
Indicates how the two transport addresses compare to each other. The return value is a standard integer, and its exact value is irrelevant (and may be platform dependent). It is intended to be used only in comparison, as follows:
  • Zero ( == 0 ) if addr1 == addr2
  • Positive ( > 0 ) if addr1 > addr2
  • Negative ( < 0 ) if addr1 < addr2
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22