GNU Radio's DIFI Package
The DIFI Out of Tree (OOT) Module allows users to leverage and easily use cloud resources in GNU Radio.
udp_socket.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Copyright (c) Microsoft Corporation.
3// Licensed under the GNU General Public License v3.0 or later.
4// See License.txt in the project root for license information.
5
6#ifndef INCLUDED_UDP_SOCKET_H
7#define INCLUDED_UDP_SOCKET_H
8
9#include <netinet/in.h>
10#include <string>
11
12namespace gr {
13namespace difi {
14
16{
17 public:
18
19 udp_socket(std::string ip_addr, uint32_t port, bool isServer, uint32_t socket_buffer_size=2000000);
21
22 int read(int8_t* buf, int len);
23 int send(int8_t* buf, int len);
24
25 private:
26 int d_socket;
27 struct sockaddr_in d_servaddr;
28};
29
30} // namespace difi
31} // namespace gr
32
33#endif /* INCLUDED_UDP_SOCKET_H */
udp_socket(std::string ip_addr, uint32_t port, bool isServer, uint32_t socket_buffer_size=2000000)
int send(int8_t *buf, int len)
int read(int8_t *buf, int len)
Definition difi_common.h:14
Definition difi_common.h:13