0
从客户端发送字符串到服务器的正确方法是什么?java - 套接字连接,向服务器发送字符串值
try
{
ToServer.writeUTF(_textfield.getText());
//Try to send the strings in textarea (_textarea = new JTextArea(20,80) )
}
catch(IOException e)
{
e.printStackTrace();
}
我使用writeUTF和从的readUTF服务器..
发送字符串从客户端,但它似乎并没有工作。