diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | core/DHT.c | 1 | ||||
-rw-r--r-- | docs/TODO.txt | 9 |
3 files changed, 11 insertions, 1 deletions
@@ -39,6 +39,8 @@ See: [docs/TODO.txt](https://github.com/irungentoo/InsertProjectNameHere/blob/ma | |||
39 | 39 | ||
40 | Use the same UDP socket for everything | 40 | Use the same UDP socket for everything |
41 | 41 | ||
42 | Keep everything really simple. | ||
43 | |||
42 | ### Details: | 44 | ### Details: |
43 | 45 | ||
44 | DHT protocol: | 46 | DHT protocol: |
@@ -61,6 +61,7 @@ int id_closest(char * client_id, char * client_id1, char * client_id2)//tested | |||
61 | 61 | ||
62 | //check if client with client_id is already in list of length length. | 62 | //check if client with client_id is already in list of length length. |
63 | //if it is set it's corresponding timestamp to current time. | 63 | //if it is set it's corresponding timestamp to current time. |
64 | //if the ip_port is already in the list but associated to a different ip, change it. | ||
64 | //return True(1) or False(0) | 65 | //return True(1) or False(0) |
65 | //TODO: maybe optimize this. | 66 | //TODO: maybe optimize this. |
66 | int client_in_list(Client_data * list, uint32_t length, char * client_id, IP_Port ip_port) | 67 | int client_in_list(Client_data * list, uint32_t length, char * client_id, IP_Port ip_port) |
diff --git a/docs/TODO.txt b/docs/TODO.txt index 10bf0991..9f999f09 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt | |||
@@ -7,6 +7,9 @@ Things to do now: | |||
7 | -Get a basic im client working using the now completed DHT implementation to find the ips of your friends. | 7 | -Get a basic im client working using the now completed DHT implementation to find the ips of your friends. |
8 | 8 | ||
9 | -Find some good encryption libraries. | 9 | -Find some good encryption libraries. |
10 | I found this: http://libtom.org/ | ||
11 | It looks pretty good so far | ||
12 | It's licenced under the WTFPL which is perfect. | ||
10 | 13 | ||
11 | -Figure out the best way to do "lossless" UDP. | 14 | -Figure out the best way to do "lossless" UDP. |
12 | 15 | ||
@@ -22,4 +25,8 @@ Less important. | |||
22 | 25 | ||
23 | -Offline messaging protocol (text only) | 26 | -Offline messaging protocol (text only) |
24 | Use your friends.(or maybe the people closest (mathematically by comparing client_id's) to you or the friend you want to send the message to). | 27 | Use your friends.(or maybe the people closest (mathematically by comparing client_id's) to you or the friend you want to send the message to). |
25 | The message will not be very big. Let's say we limit the maximum number of bytes for one to 1024, it means if every client stores 1024 offline messages it only takes 1 MB of ram. \ No newline at end of file | 28 | The message will not be very big. Let's say we limit the maximum number of bytes for one to 1024, it means if every client stores 1024 offline messages it only takes 1 MB of ram. |
29 | |||
30 | -IPv6 | ||
31 | Currently the core only supports ipv4 | ||
32 | |||