Connecting Python SocketServer with C# Client

后端 未结 3 1968
别跟我提以往
别跟我提以往 2021-01-14 06:29

I am trying to send data to Python via C# client. My code works when both the server and the client is either Python or C# but when I run the same code with C# client and Py

3条回答
  •  鱼传尺愫
    2021-01-14 07:22

    server trying to read 1024 byte from client when message received.

    `self.request.recv(1024).strip()` 
    

    client message size is not 1024 byte, try use public byte[] buffer of StateObject in Send Method.

提交回复
热议问题