diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-03 08:53:07 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-03 08:53:07 -0400 |
commit | c59975dd7ecdabe864f341b699f986e5e474acb6 (patch) | |
tree | ce8d223ce2c552b257efdca2496e621a4c0768c2 /testing/experiment/group_chats_test.c | |
parent | b73ba8244a1c04503f151c20f2eee8ccf58a0646 (diff) |
Work in progress group chats.
Not done yet.
Diffstat (limited to 'testing/experiment/group_chats_test.c')
-rw-r--r-- | testing/experiment/group_chats_test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/experiment/group_chats_test.c b/testing/experiment/group_chats_test.c new file mode 100644 index 00000000..f08e4e15 --- /dev/null +++ b/testing/experiment/group_chats_test.c | |||
@@ -0,0 +1,19 @@ | |||
1 | #include "group_chats.h" | ||
2 | #define NUM_CHATS 8 | ||
3 | |||
4 | int main() | ||
5 | { | ||
6 | IP ip; | ||
7 | ip.uint32 = 0; | ||
8 | uint32_t i; | ||
9 | Group_Chat *chats[NUM_CHATS]; | ||
10 | |||
11 | for (i = 0; i < NUM_CHATS; ++i) { | ||
12 | chats[i] = new_groupchat(new_networking(ip, 1234)); | ||
13 | |||
14 | if (chats[i] == 0) | ||
15 | exit(1); | ||
16 | } | ||
17 | |||
18 | return 0; | ||
19 | } | ||