Revision 303
eugene
trunk/code/projects/colonet/lib/colonet_wireless/colonet_wireless.cpp | ||
---|---|---|
59 | 59 |
|
60 | 60 |
strncpy(wl_port, wl_port_, 40); |
61 | 61 |
|
62 |
message_handler = message_handler_; |
|
63 |
|
|
64 |
printf("Calling wl_init...\n"); |
|
65 |
wl_init(); |
|
66 |
printf("wl_init succeeded.\n"); |
|
67 |
|
|
62 | 68 |
wl_token_ring_register(); |
69 |
|
|
70 |
printf("Joining token ring...\n"); |
|
63 | 71 |
wl_token_ring_join(); |
64 |
|
|
65 |
message_handler = message_handler_; |
|
72 |
printf("Joined token ring.\n"); |
|
66 | 73 |
} |
67 | 74 |
|
68 | 75 |
void colonet_wl_kill_listener_thread() { |
... | ... | |
186 | 193 |
*/ |
187 | 194 |
static void* listen(void* args) { |
188 | 195 |
printf("Called listen.\n"); |
189 |
wl_init(); |
|
190 |
printf("wl_init succeeded.\n"); |
|
196 |
|
|
191 | 197 |
PacketGroupHandler pgh = {COLONET_PACKET_GROUP_ID, |
192 | 198 |
timeout_handler, |
193 | 199 |
handle_response, |
Also available in: Unified diff