MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / startUDP

Function startUDP

Arduino/libraries/Ethernet2/src/utility/socket.cpp:373–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373int startUDP(SOCKET s, uint8_t* addr, uint16_t port)
374{
375 if
376 (
377 ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && (addr[3] == 0x00)) ||
378 ((port == 0x00))
379 )
380 {
381 return 0;
382 }
383 else
384 {
385 w5500.writeSnDIPR(s, addr);
386 w5500.writeSnDPORT(s, port);
387 return 1;
388 }
389}
390
391int sendUDP(SOCKET s)
392{

Callers 1

beginPacketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected