APM:Libraries
|
#include <TCPServerDevice.h>
Public Member Functions | |
TCPServerDevice (const char *ip, uint16_t port, bool wait) | |
virtual | ~TCPServerDevice () |
virtual bool | open () override |
virtual bool | close () override |
virtual void | set_blocking (bool blocking) override |
virtual void | set_speed (uint32_t speed) override |
virtual ssize_t | write (const uint8_t *buf, uint16_t n) override |
virtual ssize_t | read (uint8_t *buf, uint16_t n) override |
Public Member Functions inherited from SerialDevice | |
virtual | ~SerialDevice () |
virtual AP_HAL::UARTDriver::flow_control | get_flow_control (void) |
virtual void | set_flow_control (AP_HAL::UARTDriver::flow_control flow_control_setting) |
Private Attributes | |
SocketAPM | listener {false} |
SocketAPM * | sock = nullptr |
const char * | _ip |
uint16_t | _port |
bool | _wait |
bool | _blocking = false |
uint32_t | _last_bind_warning = 0 |
Definition at line 6 of file TCPServerDevice.h.
TCPServerDevice::TCPServerDevice | ( | const char * | ip, |
uint16_t | port, | ||
bool | wait | ||
) |
Definition at line 12 of file TCPServerDevice.cpp.
|
virtual |
Definition at line 19 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 103 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 60 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 39 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 112 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 118 of file TCPServerDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 27 of file TCPServerDevice.cpp.
|
private |
Definition at line 24 of file TCPServerDevice.h.
Referenced by open(), read(), and set_blocking().
|
private |
Definition at line 21 of file TCPServerDevice.h.
Referenced by open().
|
private |
Definition at line 25 of file TCPServerDevice.h.
Referenced by open().
|
private |
Definition at line 22 of file TCPServerDevice.h.
Referenced by open().
|
private |
Definition at line 23 of file TCPServerDevice.h.
Referenced by open().
|
private |
Definition at line 19 of file TCPServerDevice.h.
Referenced by open(), read(), and set_blocking().
|
private |
Definition at line 20 of file TCPServerDevice.h.
Referenced by close(), open(), read(), write(), and ~TCPServerDevice().