Thunderbots Project
Loading...
Searching...
No Matches
threaded_unix_sender.h
1#pragma once
2
3#include <boost/asio.hpp>
4#include <boost/bind.hpp>
5#include <string>
6
7#include "software/networking/unix/unix_sender.h"
8
10{
11 public:
17 ThreadedUnixSender(const std::string& unix_socket_path);
19
25 void sendString(const std::string& message);
26
27 private:
28 // The io_service that will be used to service all network requests
29 boost::asio::io_service io_service;
30 UnixSender unix_sender;
31
32 // The thread running the io_service in the background. This thread will run
33 // for the entire lifetime of the class
34 std::thread io_service_thread;
35};
Definition threaded_unix_sender.h:10
void sendString(const std::string &message)
Definition threaded_unix_sender.cpp:28
Definition unix_sender.h:9