]> git.localhorst.tv Git - blank.git/blobdiff - src/net/tcp.hpp
somewhat self-cleaning temp dir
[blank.git] / src / net / tcp.hpp
index 5b5f878ae7160e41dd34282f000f8961cc471134..512beb9bc45b7daf6867d7e62dc594331e5ed28b 100644 (file)
@@ -18,6 +18,8 @@ public:
        Socket();
        /// create TCP socket bound to given port
        explicit Socket(unsigned short port);
+       /// connect to given host:port
+       Socket(const std::string &host, unsigned short port);
 private:
        /// wrap given SDLNet TCP socket
        /// for use with Accept()
@@ -112,7 +114,6 @@ public:
 
 private:
        SDLNet_SocketSet set;
-       std::string buffer;
        ConnectionSet connections;
        int use_conn;
        int max_conn;