diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-20 17:07:55 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-20 17:07:55 -0700 |
commit | c12853275c03ca6153c9424f29220bc5b8903875 (patch) | |
tree | d8191c6a088bcaf8c908fbb5e81a22825712330f /testing/Messenger_test.c | |
parent | 617b2c8ba59970a67178c602d5348d036140d559 (diff) | |
parent | 128223d9d1c70afe0adb4cfe0cfda39204379c3a (diff) |
Merge pull request #506 from irungentoo/refactor
Refactored Everything.
Diffstat (limited to 'testing/Messenger_test.c')
-rw-r--r-- | testing/Messenger_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index f8685b39..c76584d7 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <unistd.h> | 48 | #include <unistd.h> |
49 | #include <arpa/inet.h> | 49 | #include <arpa/inet.h> |
50 | #define c_sleep(x) usleep(1000*x) | 50 | #define c_sleep(x) usleep(1000*x) |
51 | #define PORT 33445 | ||
51 | 52 | ||
52 | #endif | 53 | #endif |
53 | 54 | ||
@@ -106,7 +107,7 @@ int main(int argc, char *argv[]) | |||
106 | IP_Port bootstrap_ip_port; | 107 | IP_Port bootstrap_ip_port; |
107 | bootstrap_ip_port.port = htons(atoi(argv[2])); | 108 | bootstrap_ip_port.port = htons(atoi(argv[2])); |
108 | bootstrap_ip_port.ip.i = inet_addr(argv[1]); | 109 | bootstrap_ip_port.ip.i = inet_addr(argv[1]); |
109 | DHT_bootstrap(bootstrap_ip_port, hex_string_to_bin(argv[3])); | 110 | DHT_bootstrap(m->dht, bootstrap_ip_port, hex_string_to_bin(argv[3])); |
110 | } else { | 111 | } else { |
111 | FILE *file = fopen(argv[1], "rb"); | 112 | FILE *file = fopen(argv[1], "rb"); |
112 | 113 | ||