diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 15:59:56 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:48 -0400 |
commit | 995bac1a4e5999d64c4445c661323642b7b37154 (patch) | |
tree | 518c342b3174362e10865858bfe6c8ef2bf44593 /gr-network/python/network/bindings/tcp_sink_python.cc | |
parent | 0bb7c7285806c6e24a30a7fe8d1123c6fd4cc563 (diff) |
network: add pybind11 bindings
Diffstat (limited to 'gr-network/python/network/bindings/tcp_sink_python.cc')
-rw-r--r-- | gr-network/python/network/bindings/tcp_sink_python.cc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gr-network/python/network/bindings/tcp_sink_python.cc b/gr-network/python/network/bindings/tcp_sink_python.cc new file mode 100644 index 0000000000..d234651096 --- /dev/null +++ b/gr-network/python/network/bindings/tcp_sink_python.cc @@ -0,0 +1,55 @@ +/* + * 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/pybind11.h> +#include <pybind11/complex.h> +#include <pybind11/stl.h> + +namespace py = pybind11; + +#include <gnuradio/network/tcp_sink.h> +// pydoc.h is automatically generated in the build directory +#include <tcp_sink_pydoc.h> + +void bind_tcp_sink(py::module& m) +{ + + using tcp_sink = ::gr::network::tcp_sink; + + + py::class_<tcp_sink, gr::sync_block, gr::block, gr::basic_block, + std::shared_ptr<tcp_sink>>(m, "tcp_sink", D(tcp_sink)) + + .def(py::init(&tcp_sink::make), + py::arg("itemsize"), + py::arg("veclen"), + py::arg("host"), + py::arg("port"), + py::arg("sinkmode"), + D(tcp_sink,make) + ) + + + + + ; + + + + +} + + + + + + + |