Skip to content

AsyncUDP

詳細情報

メンバー

AsyncUDP()

AsyncUDP::AsyncUDP()

~AsyncUDP()

AsyncUDP::~AsyncUDP()

onPacket()

void AsyncUDP::onPacket(AuPacketHandlerFunctionWithArg cb, void *arg=NULL)

引数

  • AuPacketHandlerFunctionWithArg cb
  • void * arg

onPacket()

void AsyncUDP::onPacket(AuPacketHandlerFunction cb)

引数

  • AuPacketHandlerFunction cb

listen()

bool AsyncUDP::listen(const ip_addr_t *addr, uint16_t port)

引数

  • const* addr
  • uint16_t port

戻り値

bool

listen()

bool AsyncUDP::listen(const IPAddress addr, uint16_t port)

引数

  • const addr
  • uint16_t port

戻り値

bool

listen()

bool AsyncUDP::listen(const IPv6Address addr, uint16_t port)

引数

  • const addr
  • uint16_t port

戻り値

bool

listen()

bool AsyncUDP::listen(uint16_t port)

引数

  • uint16_t port

戻り値

bool

listenMulticast()

bool AsyncUDP::listenMulticast(const ip_addr_t *addr, uint16_t port, uint8_t ttl=1, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const* addr
  • uint16_t port
  • uint8_t ttl
  • tcpip_adapter_if_t tcpip_if

戻り値

bool

listenMulticast()

bool AsyncUDP::listenMulticast(const IPAddress addr, uint16_t port, uint8_t ttl=1, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const addr
  • uint16_t port
  • uint8_t ttl
  • tcpip_adapter_if_t tcpip_if

戻り値

bool

listenMulticast()

bool AsyncUDP::listenMulticast(const IPv6Address addr, uint16_t port, uint8_t ttl=1, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const addr
  • uint16_t port
  • uint8_t ttl
  • tcpip_adapter_if_t tcpip_if

戻り値

bool

connect()

bool AsyncUDP::connect(const ip_addr_t *addr, uint16_t port)

引数

  • const* addr
  • uint16_t port

戻り値

bool

connect()

bool AsyncUDP::connect(const IPAddress addr, uint16_t port)

引数

  • const addr
  • uint16_t port

戻り値

bool

connect()

bool AsyncUDP::connect(const IPv6Address addr, uint16_t port)

引数

  • const addr
  • uint16_t port

戻り値

bool

close()

void AsyncUDP::close()

writeTo()

size_t AsyncUDP::writeTo(const uint8_t *data, size_t len, const ip_addr_t *addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const* data
  • size_t len
  • const* addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

writeTo()

size_t AsyncUDP::writeTo(const uint8_t *data, size_t len, const IPAddress addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const* data
  • size_t len
  • const addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

writeTo()

size_t AsyncUDP::writeTo(const uint8_t *data, size_t len, const IPv6Address addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • const* data
  • size_t len
  • const addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

write()

size_t AsyncUDP::write(const uint8_t *data, size_t len)

引数

  • const* data
  • size_t len

戻り値

size_t

write()

size_t AsyncUDP::write(uint8_t data)

引数

  • uint8_t data

戻り値

size_t

broadcastTo()

size_t AsyncUDP::broadcastTo(uint8_t *data, size_t len, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • uint8_t* data
  • size_t len
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

broadcastTo()

size_t AsyncUDP::broadcastTo(const char *data, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • constchar * data
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

broadcast()

size_t AsyncUDP::broadcast(uint8_t *data, size_t len)

引数

  • uint8_t* data
  • size_t len

戻り値

size_t

broadcast()

size_t AsyncUDP::broadcast(const char *data)

引数

  • constchar * data

戻り値

size_t

sendTo()

size_t AsyncUDP::sendTo(AsyncUDPMessage &message, const ip_addr_t *addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • AsyncUDPMessage& message
  • const* addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

sendTo()

size_t AsyncUDP::sendTo(AsyncUDPMessage &message, const IPAddress addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • AsyncUDPMessage& message
  • const addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

sendTo()

size_t AsyncUDP::sendTo(AsyncUDPMessage &message, const IPv6Address addr, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • AsyncUDPMessage& message
  • const addr
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

send()

size_t AsyncUDP::send(AsyncUDPMessage &message)

引数

  • AsyncUDPMessage& message

戻り値

size_t

broadcastTo()

size_t AsyncUDP::broadcastTo(AsyncUDPMessage &message, uint16_t port, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX)

引数

  • AsyncUDPMessage& message
  • uint16_t port
  • tcpip_adapter_if_t tcpip_if

戻り値

size_t

broadcast()

size_t AsyncUDP::broadcast(AsyncUDPMessage &message)

引数

  • AsyncUDPMessage& message

戻り値

size_t

listenIP()

IPAddress AsyncUDP::listenIP()

戻り値

IPAddress

listenIPv6()

IPv6Address AsyncUDP::listenIPv6()

戻り値

IPv6Address

connected()

bool AsyncUDP::connected()

戻り値

bool

operator bool()

AsyncUDP::operator bool()

_s_recv()

void AsyncUDP::_s_recv(void *arg, udp_pcb *upcb, pbuf *p, const ip_addr_t *addr, uint16_t port, struct netif *netif)

引数

  • void * arg
  • udp_pcb * upcb
  • pbuf* p
  • const* addr
  • uint16_t port
  • netifstruct * netif