Networking: TCP server Operation not permitted (errno -1)

You can use my TCP echo server application which uses read() instead of recv().
Procedure:

  1. compile and download attached application
  2. iptables -I INPUT -j ACCEPT
  3. app start fwupdateDownloader
  4. in Linux PC, type “nc 192.168.2.2 5000”
  5. after connected, you can type some characters and the application will echo back to linux PC.

fwupdateDownloader.rar (174.0 KB)