Java client python server socket programming

前端 未结 5 1427
花落未央
花落未央 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:25

    Just Use proper syntax. Since you are sending "Hello", "Go away" will be your output.

    if ( msg == "Hello Server" ):
        print("Hii everyone")
    else:
        print("Go away")
    

提交回复
热议问题