日期:2014-05-20 浏览次数:20727 次
import java.net.* ; public class ReverseServer { public static void main (String [] args ) { try { ServerSocket ss = new ServerSocket ( 7002 ) ; boolean bRunning = true ; while ( bRunning ) { Socket s = ss.accept () ; new Thread (new Servicer (s) ).start () ;//为每一个连线的用户创建一个线程,互不干扰 } ss.close() ; } catch ( Exception e ) { e.printStackTrace() ; } } }
------解决方案--------------------
楼主不是要做外挂吧...