summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-18 11:47:27 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-18 11:47:27 -0400
commitad44110fd54d5e0400f6f6749922e1c788d04f7d (patch)
treeadea517a8a16e113e5f381f7ca6ed3028d76cb39 /testing
parente02620c7bed8764421b9b4c258e594369615da39 (diff)
Added nicknames and nickname syncing.
Diffstat (limited to 'testing')
-rw-r--r--testing/Messenger_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c
index 484098b9..f9215b44 100644
--- a/testing/Messenger_test.c
+++ b/testing/Messenger_test.c
@@ -117,6 +117,8 @@ int main(int argc, char *argv[])
117 printf("%hhX",self_public_key[i]); 117 printf("%hhX",self_public_key[i]);
118 } 118 }
119 119
120 setname((uint8_t *)"Anon", 5);
121
120 char temp_id[128]; 122 char temp_id[128];
121 printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n"); 123 printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n");
122 if(scanf("%s", temp_id) != 1) 124 if(scanf("%s", temp_id) != 1)
@@ -129,6 +131,10 @@ int main(int argc, char *argv[])
129 131
130 while(1) 132 while(1)
131 { 133 {
134 uint8_t name[128];
135 getname(num, name);
136 printf("%s\n", name);
137
132 m_sendmessage(num, (uint8_t*)"Test", 5); 138 m_sendmessage(num, (uint8_t*)"Test", 5);
133 doMessenger(); 139 doMessenger();
134 c_sleep(30); 140 c_sleep(30);