Small change to TCP test.

This commit is contained in:
irungentoo 2015-04-08 20:50:19 -04:00
parent 3e9c4e80f0
commit c3a6c5b92e
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -419,6 +419,7 @@ START_TEST(test_client)
uint8_t f2_public_key[crypto_box_PUBLICKEYBYTES];
uint8_t f2_secret_key[crypto_box_SECRETKEYBYTES];
crypto_box_keypair(f2_public_key, f2_secret_key);
ip_port_tcp_s.port = htons(ports[rand() % NUM_PORTS]);
TCP_Client_Connection *conn2 = new_TCP_connection(ip_port_tcp_s, self_public_key, f2_public_key, f2_secret_key, 0);
routing_response_handler(conn, response_callback, ((void *)conn) + 2);
routing_status_handler(conn, status_callback, (void *)2);