mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Refactor TCP-specific pieces of Dispatcher.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user