58 tcount = static_cast <
size_t>(atol(argv[2]));
61 if (
device.find(
':') != string::npos)
72 shandle =
new Serial(device_addr, 19200);
77 printf(
"Usage: ax25_recv [device [tcount]]\n");
83 for (
size_t i=0;
i<tcount; ++
i)
86 vector <uint8_t> packet;
Definition: jsondef.h:647
uint8_t get_source_stationID()
Definition: ax25class.cpp:113
Agent socket using Unicast UDP.
PORT_TYPE
Definition: jsondef.h:644
static uint16_t device_port
Definition: ax25_recv.cpp:41
int i
Definition: rw_test.cpp:37
vector< uint8_t > get_packetData()
Definition: ax25class.cpp:145
int32_t socket_recvfrom(socket_channel &channel, string &buffer, size_t maxlen, int flags)
Definition: socketlib.cpp:710
Definition: serialclass.h:43
int iretn
Definition: rw_test.cpp:37
ElapsedTime et
Definition: agent_cpu_device_test.cpp:51
uint8_t get_protocolID()
Definition: ax25class.cpp:135
static string device_addr
Definition: ax25_recv.cpp:40
string get_source_callsign()
Definition: ax25class.cpp:97
string to_hex_string(vector< uint8_t > buffer, bool ascii)
Definition: stringlib.cpp:204
Definition: socketlib.h:115
int32_t set_raw_packet(vector< uint8_t > packet)
Definition: ax25class.cpp:156
uint8_t get_control()
Definition: ax25class.cpp:124
Definition: elapsedtime.h:62
int32_t unload_packet()
Definition: ax25class.cpp:172
static Ax25Handle handle
Definition: ax25_recv.cpp:38
int32_t set_timeout(int, double timeout)
Definition: serialclass.cpp:515
#define SOCKET_LISTEN
Listen followed by optional talk (recvfrom INADDRANY)
Definition: socketlib.h:84
static Serial * shandle
Definition: kiss_send.cpp:35
Definition: jsondef.h:645
string get_destination_callsign()
Definition: ax25class.cpp:60
int32_t get_data(vector< uint8_t > &data, size_t size=SIZE_MAX)
Definition: serialclass.cpp:1202
int32_t socket_open(socket_channel *channel, NetworkType ntype, const char *address, uint16_t port, uint16_t role, bool blocking, uint32_t usectimeo, uint32_t rcvbuf, uint32_t sndbuf)
Open UDP socket.
Definition: socketlib.cpp:51
uint8_t get_destination_stationID()
Definition: ax25class.cpp:76
static string device
Definition: ax25_recv.cpp:39