UDP Connect Always Succeeds
问题 I am using Boost ASIO to connect to an Arduino Nano with an Ethernet Shield over ethernet. This is the Arduino setup: #include <EtherCard.h> ether.staticSetup("10.0.0.4", "10.0.0.1"); ether.udpServerListenOnPort(&callback_function, 1337); This is my C++ code that connects to it: Header #include <boost/asio.hpp> #include <boost/shared_ptr.hpp> #include <boost/make_shared.hpp> #include <boost/bind.hpp> #include <boost/thread.hpp> #include <boost/system/error_code.hpp> #include <boost/system