Catch SendFailedException when replying back in Connection::Receive()
[oweals/minetest.git] / src / socket.h
index 6b7a2462ee61ce2d696843978b99a9edf175968c..f24947c2785b10341d361514e989f52c12c9c617 100644 (file)
@@ -35,6 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 typedef SOCKET socket_t;
 typedef int socklen_t;
 #else
+       #include <sys/types.h>
        #include <sys/socket.h>
        #include <netinet/in.h>
        #include <fcntl.h>
@@ -96,6 +97,7 @@ public:
        void setPort(unsigned short port);
        void print(std::ostream *s) const;
        void print() const;
+       std::string serializeString();
 private:
        unsigned int m_address;
        unsigned short m_port;