📄 recievingthread.java
字号:
/*
* RecievingThread.java
*
* Created on 2006年12月12日, 下午9:29
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package cn.edu.tsinghua.thss.talkie.connect;
/**
*
* @author promenade
*/
public class RecievingThread implements Runnable{
Connect connect;
/** Creates a new instance of RecievingThread */
public RecievingThread(Connect connect) {
this.connect = connect;
(new Thread(this,"receiving thread")).start();
}
public void run() {
this.connect.toListen();
while( !Thread.currentThread().interrupted() ){
this.connect.receiveObject();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -