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