Support multihomed servers

This commit is contained in:
Keith Winstein
2012-02-02 17:21:49 -05:00
parent 3edccf1f2e
commit 740226e66a
6 changed files with 39 additions and 13 deletions
+3 -2
View File
@@ -9,8 +9,9 @@ using namespace Network;
using namespace std;
template <class MyState, class RemoteState>
Transport<MyState, RemoteState>::Transport( MyState &initial_state, RemoteState &initial_remote )
: connection(),
Transport<MyState, RemoteState>::Transport( MyState &initial_state, RemoteState &initial_remote,
const char *desired_ip )
: connection( desired_ip ),
sender( &connection, initial_state ),
received_states( 1, TimestampedState<RemoteState>( timestamp(), 0, initial_remote ) ),
last_receiver_state( initial_remote ),