ニュース

昨日 は1983年に4.2BSDに実装されたSocketというインタフェースを使ったプログラミングについて書いたが、Pythonなどの言語でもSocketを使っている。嘘だと思うならPythonのソースコードをということで、(誰も嘘だと言ってないが)今日もソースコードを読む。
1-3.socketの概要 Pythonの socket モジュールによりネットワーク通信の実装が可能です。 つまり、コンピューターネットワークを通じて2つ以上のコンピュータが通信できる方法を提供します。 ソケットはエンドポイント(IPアドレスとポート番号)を用います。
esp8266 socket client and python socket server. Contribute to mthri/esp8266-python-socket development by creating an account on GitHub.
On the ESP8266, because it’s all in Python, the code is similar. In fact, the same basic code would work between two computers running vanilla Python just as well as the ESP8266 running MicroPython.
The only time to pickle something is if you need to represent a non-string object on disk, but Python code is strings. I presume that the receiving program is basically calling eval (skt.recv ()).