Java client python server socket programming

前端 未结 5 1425
花落未央
花落未央 2021-02-06 19:38

I have a client program in java that sends a message \"Hello\" to python server.

Java code

    import java.io.*;  
    import java.net.*; 
    public cla         


        
5条回答
  •  暖寄归人
    2021-02-06 20:14

    The problem is that you have to specify the decryption UTF-8 in the Python server and then you should use dout.writeBytes("Hello Server") in the Java client.

提交回复
热议问题