Simplify network.cpp to transmit only strings.

This commit is contained in:
Keith Winstein
2011-08-05 19:44:34 -04:00
parent bffc099754
commit 1b3443befd
10 changed files with 211 additions and 197 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef NETWORK_TRANSPORT_HPP
#define NETWORK_TRANSPORT_HPP
#include <google/dense_hash_map>
using google::dense_hash_map;
namespace Network {
template <class MyState, class RemoteState>
class Transport
{
private:
Connection<typename MyState::Conveyance, typename RemoteState::Conveyance> connection;
uint64_t last_acknowledged_state;
uint64_t assumed_receiver_state;
uint64_t last_sent_state;
public:
Transport();
Transport( const char *key_str, const char *ip, int port );
};
};
#endif