37 : wiz(
std::move(wiz)), sock_n(sock_n)
44 wiz->close(sock_n, 100);
47 bool send(uint8_t* pkt,
size_t len) {
return wiz->send(sock_n, pkt, len); }
53 return wiz->recvfrom(sock_n, pkt, len, dst_ip, dst_port);
65 return wiz->openUdp(sock_n, recv_port, send_ip, send_port);
71 void close() { wiz->close(sock_n); }
74 std::shared_ptr<Wiz5500> wiz;
UdpTransceiver(std::shared_ptr< Wiz5500 > wiz, int sock_n)
bool open(uint16_t recv_port, Boardcore::WizIp send_ip, uint16_t send_port)
Open this UdpTransceiver on the specified ports.
ssize_t receive(uint8_t *pkt, size_t len)
Wait until a new packet is received.
bool send(uint8_t *pkt, size_t len)
Send a packet.
void close()
Close this transceiver.
This file includes all the types the logdecoder script will decode.
Class representing an IPv4 ip.