socket通信
使用socket通信serverSocket启动后启动ClientSocket(客户端)
在启动receiveApplet(显示来自客户端的信息)
启动sendApplet(发送信息给客户端)
启动成功后在ClientSocket下输入数据2如下:
Client start working...
2
则此时receiveApplet没有受到信息
在在sendApplet里发信息4显示如下:
Send Applet has been launched.....
The socket info is Socket[addr=/202.118.186.14,port=1235,localport=3269]
4 have sended...
此时receiveApplet受到信息却是2者的信息合并如下:
Recieve Applet has been launched.....
24(十六进制) -> 36(十进制) have received..
怎么回事呢?我现在正确的要求是receiveApplet只显示来自clientSocket的消息。如何做呢?
----------------解决方案--------------------------------------------------------