docs: setsockopt(socket.SOL_SOCKET, 20, ... handler routine ...) #11550
Replies: 2 comments 1 reply
-
This socket option was introduced for the ESP8266 port and it's webrepl feature. But it is not limited to that usage. YOu can use it for other purpose as well. It is for instance used in the ftp server (https://github.com/robert-hh/FTP-Server-for-ESP8266-ESP32-and-PYBD). Initially it was intended for use by ESP8266 only, but it's now available on most ports with network support. |
Beta Was this translation helpful? Give feedback.
-
@robert-hh Hi Robert Many thanks for your answer, and also for your help moving my other issues to the right place. My goal: while developing and debugging I am used, also on linux and windows, to duplicate the usual print() also on another device, like a log file, a syslog server, etc... Due the few memory of some micros, I have this idea: make a minimal, unidirectional telnet server, where - if there is a client connected - it receives the debug print(). Sometimes it works, other times it disconnects the client a few second after the connections. Can you please take a look at the attached code and see if there are major deficiences? Ciao, Massimo |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
General question about TCP server, listen and accept client connections.
I don't recollect exactly, I am overloaded by too much infos in a few days.
Is the option 20 implemented for REPL over wss ?
If I don't use the remote REPL, can I use this option for my purposes?
Is it production ready ?
How many listen (servers) sockets can I use with this option?
If yes to the previous questions, can you please document its usage in the officlal docs?
Beta Was this translation helpful? Give feedback.
All reactions