GNU Radio's LORA Package
message_socket_source_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2018 Nikos Karamolegkos.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_LORA_MESSAGE_SOCKET_SOURCE_IMPL_H
22#define INCLUDED_LORA_MESSAGE_SOCKET_SOURCE_IMPL_H
23
25#include <sys/socket.h>
26#include <arpa/inet.h>
27#include <boost/thread.hpp>
28
29namespace gr
30{
31 namespace lora
32 {
33
35 private:
36 const std::string d_addr;
37 const uint16_t d_udp_port;
38 bool d_running;
39 boost::shared_ptr<boost::thread> d_thread;
40
41 void msg_receive_udp();
42
43 public:
44 message_socket_source_impl(const std::string& addr, uint16_t port);
46 };
47
48 } // namespace lora
49} // namespace gr
50
51#endif /* INCLUDED_LORA_MESSAGE_SOCKET_SOURCE_IMPL_H */
Definition message_socket_source_impl.h:34
message_socket_source_impl(const std::string &addr, uint16_t port)
Message socket source block , using UDP.
Definition message_socket_source.h:698
Definition channelizer.h:28