62,615
社区成员
发帖
与我相关
我的任务
分享
while(true)
{
OutputStream ostr=socket.getOutputStream();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// System.out.println("hello"+new Date());
ostr.write(("hello"+new Date()).getBytes());
ostr.flush();
ostr.close();
}