|
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
-
transport | The Transport. This parameter must not be NULL. |
size | The size in bytes of the transport addresses. |
addr1 | The first address to compare. The address must be associated with the transport. This parameter will never be NULL. |
addr2 | The 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
|