![]() |
WiConnect Host Library- API Reference Guide | ||
UDP methods. More...
Functions | |
WiconnectResult | wiconnect::SocketInterface::udpConnect (WiconnectSocket &socket, const char *host, uint16_t remortPort, uint16_t localPort=SOCKET_ANY_PORT) |
Connect to remote UDP server. More... | |
WiconnectResult | wiconnect::SocketInterface::udpListen (WiconnectUdpServer &udpServer, uint16_t listeningPort) |
Start a UDP server listening on the given port. More... | |
UDP methods.
WiconnectResult wiconnect::SocketInterface::udpConnect | ( | WiconnectSocket & | socket, |
const char * | host, | ||
uint16_t | remortPort, | ||
uint16_t | localPort = SOCKET_ANY_PORT |
||
) |
Connect to remote UDP server.
[out] | socket | UDP WiconnectSocket object of opened connection. |
[in] | host | The host/IP address of the remote UDP server |
[in] | remortPort | The port of the remote server |
[in] | localPort | Optional, port of module's side of the connection |
[in] | irqPin | Optional, Data available external interrupt pin. See registerSocketIrqHandler() for more info |
WiconnectResult wiconnect::SocketInterface::udpListen | ( | WiconnectUdpServer & | udpServer, |
uint16_t | listeningPort | ||
) |
Start a UDP server listening on the given port.
[out] | udpServer | UDP WiconnectUdpServer object listening server |
[in] | listeningPort | The port the UDP server listens on |