X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Ftcp_server.cxx;h=672e6d968d8c9004f60b1f4e4a757e1c9d8fd1d5;hb=427d6c3316e59aa86bbf4d3e51f522e0aba9c4fd;hp=b0534937dab76b191db3540386ee188c71bbd47e;hpb=78411d29a7fdd606e50a81d03d6e8a08dcb15828;p=simgear.git diff --git a/simgear/io/tcp_server.cxx b/simgear/io/tcp_server.cxx index b0534937..672e6d96 100644 --- a/simgear/io/tcp_server.cxx +++ b/simgear/io/tcp_server.cxx @@ -1,17 +1,18 @@ #include #include -#include STL_STRING -#include STL_IOSTREAM +#include +#include #include "sg_socket.hxx" -SG_USING_STD(string); -SG_USING_STD(cout); +using std::string; +using std::cout; class TcpServer { public: TcpServer(); + ~TcpServer(); bool open(); bool process(); bool close(); @@ -25,6 +26,11 @@ TcpServer::TcpServer() channel = new SGSocket( "", "5500", "tcp" ); } +TcpServer::~TcpServer() +{ + delete channel; +} + bool TcpServer::open() {