Public Member Functions | Private Member Functions | Private Attributes
mavconn::MAVConnTCPServer Class Reference

TCP server interface. More...

#include <tcp.h>

Inheritance diagram for mavconn::MAVConnTCPServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void close ()
 Close connection.
mavlink_status_t get_status ()
bool is_open ()
 MAVConnTCPServer (uint8_t system_id=1, uint8_t component_id=MAV_COMP_ID_UDP_BRIDGE, std::string bind_host="localhost", unsigned short bind_port=5760)
void send_bytes (const uint8_t *bytes, size_t length)
 Send raw bytes (for some quirks)
void send_message (const mavlink_message_t *message, uint8_t sysid, uint8_t compid)
 Send message Can be used in message_received signal.
 ~MAVConnTCPServer ()

Private Member Functions

void async_accept_end (boost::system::error_code)
void client_closed (boost::weak_ptr< MAVConnTCPClient > weak_instp)
void do_accept ()
void recv_message (const mavlink_message_t *message, uint8_t sysid, uint8_t compid)

Private Attributes

boost::asio::ip::tcp::acceptor acceptor
boost::shared_ptr
< MAVConnTCPClient
acceptor_client
boost::asio::ip::tcp::endpoint bind_ep
std::list< boost::shared_ptr
< MAVConnTCPClient > > 
client_list
boost::asio::io_service io_service
std::thread io_thread
std::unique_ptr
< boost::asio::io_service::work > 
io_work
std::recursive_mutex mutex

Detailed Description

TCP server interface.

Note:
IPv4 only

Definition at line 97 of file tcp.h.


The documentation for this class was generated from the following files:


libmavconn
Author(s): Vladimir Ermakov
autogenerated on Wed Aug 26 2015 12:29:08