Python - Server and client problems

后端 未结 2 1520
日久生厌
日久生厌 2021-01-17 04:57

I\'m trying to create a basic server and client script. The idea is that the client can connect to the server and execute commands. Kinda like SSH but very simple. Heres my

2条回答
  •  無奈伤痛
    2021-01-17 05:32

    Well for one thing you're only connecting on the client once and on the server you're closing the socket after every read.

    You should take a look at this example.

    http://ilab.cs.byu.edu/python/socket/echoserver.html

    You're doing quite a few things incorrectly.

提交回复
热议问题