The server reply to the ALLOCATE request contains the XOR-attributes. Run the wireshark and you will see them (decode as STUN).
The formatting is somewhat complex, that's not just about XOR operation. Read how the attributes are encoded in STUN RFC 5389.
If you are handling the message protocol "manually" (not using a third party library) then you do have to deal with that formatting. In the supplied client library, there is a procedure to read such address attributes from the buffer. See the functions stun_addr_decode(..) and stun_addr_encode(...). The same functions you can find in the source code.
But if you are using a third-party library for the TURN operations, then it must handle everything for you, then you do not have to decode the addresses yourself.