How is udp.h in arduino-esp32 core used ?

I was looking at the arduino-esp32 core and under cores/esp32 there is a udp.h without
an associated cpp file.

Under the libraries folder there is the AsyncUDP library so I am wondering what is the reason for
the udp.h file in cores/esp32 directory ?

I didn't dive in details of how udp.h works, but in the general case for C ++ - the .cpp file is optional, it is quite acceptable to place all the code only in the .h file.

1 Like

Thanks for responding. I forgot about that.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.