diff options
Diffstat (limited to 'gr-blocks/python/blocks/bindings/socket_pdu_python.cc')
-rw-r--r-- | gr-blocks/python/blocks/bindings/socket_pdu_python.cc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/bindings/socket_pdu_python.cc b/gr-blocks/python/blocks/bindings/socket_pdu_python.cc new file mode 100644 index 000000000..6512f3297 --- /dev/null +++ b/gr-blocks/python/blocks/bindings/socket_pdu_python.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2020 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * SPDX-License-Identifier: GPL-3.0-or-later + * + */ + +/* This file is automatically generated using bindtool */ + +#include <pybind11/complex.h> +#include <pybind11/pybind11.h> +#include <pybind11/stl.h> + +namespace py = pybind11; + +#include <gnuradio/blocks/socket_pdu.h> +// pydoc.h is automatically generated in the build directory +#include <socket_pdu_pydoc.h> + +void bind_socket_pdu(py::module& m) +{ + + using socket_pdu = ::gr::blocks::socket_pdu; + + + py::class_<socket_pdu, gr::block, gr::basic_block, std::shared_ptr<socket_pdu>>( + m, "socket_pdu", D(socket_pdu)) + + .def(py::init(&socket_pdu::make), + py::arg("type"), + py::arg("addr"), + py::arg("port"), + py::arg("MTU") = 10000, + py::arg("tcp_no_delay") = false, + D(socket_pdu, make)) + + + ; +} |