Java Sockets. Server-Client communication

后端 未结 3 687
孤城傲影
孤城傲影 2021-01-20 13:10

I am trying to connect a client with gui with a server withoout gui. Connection is being done, but i cant see any messages between these two apps. (i should get SERVER HERE

3条回答
  •  误落风尘
    2021-01-20 13:19

    You're using readLine() which expects a newline character. either add a \n to the messages you are sending or don't use readLine().

提交回复
热议问题