Refactor TCP-specific pieces of Dispatcher.

This commit is contained in:
Peter Johnson
2015-08-02 00:33:41 -07:00
parent 0dcaf56ed1
commit 84ff80710c
4 changed files with 80 additions and 65 deletions

View File

@@ -26,13 +26,12 @@
#include <memory>
#include "TCPStream.h"
#include "NetworkStream.h"
class TCPConnector {
public:
static std::unique_ptr<TCPStream> connect(const char* server, int port);
static std::unique_ptr<TCPStream> connect(const char* server, int port,
int timeout);
static std::unique_ptr<NetworkStream> connect(const char* server, int port,
int timeout = 0);
};
#endif