diff options
author | Thomas Habets <thomas@habets.se> | 2020-08-11 12:09:21 +0100 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-08-14 04:19:58 -0700 |
commit | 8df39c1ac66b8fe38f804e14459b831491ad6270 (patch) | |
tree | 117cfec2b32dfb58e23b3f74bd6a6e6e8977a439 /gr-blocks/lib/tcp_connection.h | |
parent | 4b8725982361f66304e53391c1411de1d5840bff (diff) |
blocks/tcp_connection: Remove manual memory management
Diffstat (limited to 'gr-blocks/lib/tcp_connection.h')
-rw-r--r-- | gr-blocks/lib/tcp_connection.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gr-blocks/lib/tcp_connection.h b/gr-blocks/lib/tcp_connection.h index 2dd914ab71..f97f8a605b 100644 --- a/gr-blocks/lib/tcp_connection.h +++ b/gr-blocks/lib/tcp_connection.h @@ -34,6 +34,8 @@ private: int MTU = 10000, bool no_delay = false); + void handle_read(const boost::system::error_code& error, size_t bytes_transferred); + public: typedef std::shared_ptr<tcp_connection> sptr; @@ -44,12 +46,6 @@ public: void start(gr::basic_block* block); void send(pmt::pmt_t vector); - void handle_read(const boost::system::error_code& error, size_t bytes_transferred); - void handle_write(std::shared_ptr<char[]> txbuf, - const boost::system::error_code& error, - size_t bytes_transferred) - { - } }; } /* namespace blocks */ |