GNU Radio's DIFI Package
The DIFI Out of Tree (OOT) Module allows users to leverage and easily use cloud resources in GNU Radio.
tcp_client.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_TCP_CLIENT_H
7#define INCLUDED_TCP_CLIENT_H
8
9#include <string>
10#include <netinet/in.h>
11
12
13namespace gr {
14namespace difi {
15
17{
18 public:
19
20 tcp_client(std::string ip_addr, uint32_t port);
22
23 bool connect();
25 int send(int8_t* buf, int lent);
26
27 private:
28
29 void create_socket();
30
31 int d_socket;
32 struct sockaddr_in d_servaddr;
33};
34
35} // namespace difi
36} // namespace gr
37
38#endif /* INCLUDED_TCP_CLIENT_H */
int send(int8_t *buf, int lent)
tcp_client(std::string ip_addr, uint32_t port)
Definition difi_common.h:14
Definition difi_common.h:13