MIP SDK  0.0.1
MicroStrain Communications Library for embedded systems
Public Member Functions | List of all members
mip::platform::TcpConnection Class Reference

#include <tcp_connection.hpp>

Inheritance diagram for mip::platform::TcpConnection:
Inheritance graph
[legend]
Collaboration diagram for mip::platform::TcpConnection:
Collaboration graph
[legend]

Public Member Functions

 TcpConnection ()=default
 
 TcpConnection (const std::string &hostname, uint16_t port)
 
 ~TcpConnection ()
 
bool recvFromDevice (uint8_t *buffer, size_t max_length, size_t *length_out, mip::Timestamp *timestamp) final
 
bool sendToDevice (const uint8_t *data, size_t length) final
 

Constructor & Destructor Documentation

◆ TcpConnection() [1/2]

mip::platform::TcpConnection::TcpConnection ( )
default

◆ TcpConnection() [2/2]

mip::platform::TcpConnection::TcpConnection ( const std::string &  hostname,
uint16_t  port 
)

◆ ~TcpConnection()

mip::platform::TcpConnection::~TcpConnection ( )

Member Function Documentation

◆ recvFromDevice()

bool mip::platform::TcpConnection::recvFromDevice ( uint8_t *  buffer,
size_t  max_length,
size_t *  length_out,
mip::Timestamp timestamp 
)
finalvirtual

Implements mip::Connection.

◆ sendToDevice()

bool mip::platform::TcpConnection::sendToDevice ( const uint8_t *  data,
size_t  length 
)
finalvirtual

Implements mip::Connection.


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