diff --git a/test.cpp b/test.cpp index 2baf9581..9dabcfd5 100644 --- a/test.cpp +++ b/test.cpp @@ -641,12 +641,6 @@ void test_connection_reliable_ordered_messages() sender.SendMessage( ReliableChannel, message ); } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - int numMessagesReceived = 0; const int NumIterations = 1000; @@ -709,12 +703,6 @@ void test_connection_reliable_ordered_blocks() sender.SendMessage( ReliableChannel, message ); } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - int numMessagesReceived = 0; uint16_t senderSequence = 0; @@ -802,12 +790,6 @@ void test_connection_reliable_ordered_messages_and_blocks() } } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - int numMessagesReceived = 0; uint16_t senderSequence = 0; @@ -923,12 +905,6 @@ void test_connection_reliable_ordered_messages_and_blocks_multiple_channels() } } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - const int NumIterations = 10000; int numMessagesReceived[NumChannels]; @@ -1025,12 +1001,6 @@ void test_connection_unreliable_unordered_messages() Connection sender( GetDefaultAllocator(), messageFactory, connectionConfig, time ); Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time ); - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - const int NumIterations = 256; const int NumMessagesSent = 16; @@ -1090,12 +1060,6 @@ void test_connection_unreliable_unordered_blocks() Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time ); - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - const int NumIterations = 256; const int NumMessagesSent = 8; @@ -2064,12 +2028,6 @@ void test_single_message_type_reliable() sender.SendMessage( 0, message ); } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - int numMessagesReceived = 0; const int NumIterations = 1000; @@ -2132,12 +2090,6 @@ void test_single_message_type_reliable_blocks() sender.SendMessage( 0, message ); } - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - int numMessagesReceived = 0; uint16_t senderSequence = 0; @@ -2201,12 +2153,6 @@ void test_single_message_type_unreliable() Connection sender( GetDefaultAllocator(), messageFactory, connectionConfig, time ); Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time ); - const int SenderPort = 10000; - const int ReceiverPort = 10001; - - Address senderAddress( "::1", SenderPort ); - Address receiverAddress( "::1", ReceiverPort ); - const int NumIterations = 256; const int NumMessagesSent = 16;