diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-blocks/lib/udp_sink_impl.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-blocks/lib/udp_sink_impl.h')
-rw-r--r-- | gr-blocks/lib/udp_sink_impl.h | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/gr-blocks/lib/udp_sink_impl.h b/gr-blocks/lib/udp_sink_impl.h index c593e6e809..5b3a2bd015 100644 --- a/gr-blocks/lib/udp_sink_impl.h +++ b/gr-blocks/lib/udp_sink_impl.h @@ -27,39 +27,38 @@ #include <boost/asio.hpp> namespace gr { - namespace blocks { +namespace blocks { - class udp_sink_impl : public udp_sink - { - private: - size_t d_itemsize; +class udp_sink_impl : public udp_sink +{ +private: + size_t d_itemsize; - int d_payload_size; // maximum transmission unit (packet length) - bool d_eof; // send zero-length packet on disconnect - bool d_connected; // are we connected? - gr::thread::mutex d_mutex; // protects d_socket and d_connected + int d_payload_size; // maximum transmission unit (packet length) + bool d_eof; // send zero-length packet on disconnect + bool d_connected; // are we connected? + gr::thread::mutex d_mutex; // protects d_socket and d_connected - boost::asio::ip::udp::socket *d_socket; // handle to socket - boost::asio::ip::udp::endpoint d_endpoint; - boost::asio::io_service d_io_service; + boost::asio::ip::udp::socket* d_socket; // handle to socket + boost::asio::ip::udp::endpoint d_endpoint; + boost::asio::io_service d_io_service; - public: - udp_sink_impl(size_t itemsize, - const std::string &host, int port, - int payload_size, bool eof); - ~udp_sink_impl(); +public: + udp_sink_impl( + size_t itemsize, const std::string& host, int port, int payload_size, bool eof); + ~udp_sink_impl(); - int payload_size() { return d_payload_size; } + int payload_size() { return d_payload_size; } - void connect(const std::string &host, int port); - void disconnect(); + void connect(const std::string& host, int port); + void disconnect(); - int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); - }; + int work(int noutput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items); +}; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* INCLUDED_GR_UDP_SINK_IMPL_H */ |