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
12
namespace
gr
{
13
namespace
difi
{
14
15
class
udp_socket
16
{
17
public
:
18
19
udp_socket
(std::string ip_addr, uint32_t port,
bool
isServer, uint32_t socket_buffer_size=2000000);
20
~udp_socket
();
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 */
gr::difi::udp_socket::~udp_socket
~udp_socket()
gr::difi::udp_socket::udp_socket
udp_socket(std::string ip_addr, uint32_t port, bool isServer, uint32_t socket_buffer_size=2000000)
gr::difi::udp_socket::send
int send(int8_t *buf, int len)
gr::difi::udp_socket::read
int read(int8_t *buf, int len)
gr::difi
Definition
difi_common.h:14
gr
Definition
difi_common.h:13
lib
udp_socket.h
Generated by
1.16.1