Java sockets - Client doesn't read the strings from server's socket
问题 I have two Java projects that communicate with sockets through strings. One is a client and the other is a server. The server accepts the connection trough the "ServerSocket" and creates a new "Session" (Thread) with a freshly created "Socket". Meanwhile, the client only has a "Socket", once that socket is connected, the client creates a "ClientSession" (Thread, pretty similar to "Session). What I want is the server to ask the client his username through the "USERNAME" string, and the client