diff options
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/socket_pdu.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/socket_pdu.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/socket_pdu.h b/gr-blocks/include/gnuradio/blocks/socket_pdu.h index 31468a3f43..f91881621e 100644 --- a/gr-blocks/include/gnuradio/blocks/socket_pdu.h +++ b/gr-blocks/include/gnuradio/blocks/socket_pdu.h @@ -27,30 +27,34 @@ #include <gnuradio/block.h> namespace gr { - namespace blocks { +namespace blocks { + +/*! + * \brief Creates socket interface and translates traffic to PDUs + * \ingroup networking_tools_blk + */ +class BLOCKS_API socket_pdu : virtual public block +{ +public: + // gr::blocks::socket_pdu::sptr + typedef boost::shared_ptr<socket_pdu> sptr; /*! - * \brief Creates socket interface and translates traffic to PDUs - * \ingroup networking_tools_blk + * \brief Construct a SOCKET PDU interface + * \param type "TCP_SERVER", "TCP_CLIENT", "UDP_SERVER", or "UDP_CLIENT" + * \param addr network address to use + * \param port network port to use + * \param MTU maximum transmission unit + * \param tcp_no_delay TCP No Delay option (set to True to disable Nagle algorithm) */ - class BLOCKS_API socket_pdu : virtual public block - { - public: - // gr::blocks::socket_pdu::sptr - typedef boost::shared_ptr<socket_pdu> sptr; - - /*! - * \brief Construct a SOCKET PDU interface - * \param type "TCP_SERVER", "TCP_CLIENT", "UDP_SERVER", or "UDP_CLIENT" - * \param addr network address to use - * \param port network port to use - * \param MTU maximum transmission unit - * \param tcp_no_delay TCP No Delay option (set to True to disable Nagle algorithm) - */ - static sptr make(std::string type, std::string addr, std::string port, int MTU=10000, bool tcp_no_delay=false); - }; + static sptr make(std::string type, + std::string addr, + std::string port, + int MTU = 10000, + bool tcp_no_delay = false); +}; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* INCLUDED_BLOCKS_SOCKET_PDU_H */ |