diff options
-rw-r--r-- | toxdns/toxdns.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/toxdns/toxdns.h b/toxdns/toxdns.h index 173c8b2f..a570e7ea 100644 --- a/toxdns/toxdns.h +++ b/toxdns/toxdns.h | |||
@@ -31,13 +31,14 @@ | |||
31 | * 1. Get the public key of a server that supports tox dns3. | 31 | * 1. Get the public key of a server that supports tox dns3. |
32 | * 2. use tox_dns3_new() to create a new object to create DNS requests | 32 | * 2. use tox_dns3_new() to create a new object to create DNS requests |
33 | * and handle responses for that server. | 33 | * and handle responses for that server. |
34 | * 3. Use tox_generate_dns3_string() to generate a string based on the name we want to query. | 34 | * 3. Use tox_generate_dns3_string() to generate a string based on the name we want to query and a request_id |
35 | * that must be stored somewhere for when we want to decrypt the response. | ||
35 | * 4. take the string and use it for your DNS request like this: | 36 | * 4. take the string and use it for your DNS request like this: |
36 | * _4haaaaipr1o3mz0bxweox541airydbovqlbju51mb4p0ebxq.rlqdj4kkisbep2ks3fj2nvtmk4daduqiueabmexqva1jc._tox.utox.org | 37 | * _4haaaaipr1o3mz0bxweox541airydbovqlbju51mb4p0ebxq.rlqdj4kkisbep2ks3fj2nvtmk4daduqiueabmexqva1jc._tox.utox.org |
37 | * | ||
38 | * 5. The TXT in the DNS you receive should look like this: | 38 | * 5. The TXT in the DNS you receive should look like this: |
39 | * v=tox3;id=2vgcxuycbuctvauik3plsv3d3aadv4zfjfhi3thaizwxinelrvigchv0ah3qjcsx5qhmaksb2lv2hm5cwbtx0yp | 39 | * v=tox3;id=2vgcxuycbuctvauik3plsv3d3aadv4zfjfhi3thaizwxinelrvigchv0ah3qjcsx5qhmaksb2lv2hm5cwbtx0yp |
40 | * 6. Take the id string and use it with tox_decrypt_dns3_TXT() to get the Tox id returned by the DNS server. | 40 | * 6. Take the id string and use it with tox_decrypt_dns3_TXT() and the request_id corresponding to the |
41 | * request we stored earlier to get the Tox id returned by the DNS server. | ||
41 | */ | 42 | */ |
42 | 43 | ||
43 | /* Create a new tox_dns3 object for server with server_public_key of size TOX_CLIENT_ID_SIZE. | 44 | /* Create a new tox_dns3 object for server with server_public_key of size TOX_CLIENT_ID_SIZE. |