PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

NativeEthernet AdvancedChatServer EthernetServer.accept() not working #44

Closed doeringJ closed 4 years ago

doeringJ commented 4 years ago

in this example for Teensy 4.1 the EthernetClient newClient = server.accept(); never returns a newClient even the Client is connected (tested with putty)

I guess the reason is because the fnet_socket_accept(…) function is not called in the EthernetServer.accept() function as seen in the EthernetServer.available() function.

vjmuzik commented 4 years ago

I just pushed a fix, I tested it using that example so I can confirm that specifically works so barring any unforeseen differences with other projects using server.accept() it should now function correctly.

doeringJ commented 4 years ago

Tested the fix and can confirm it works. Thank you.