示例#1
0
 public void run(int socketBufferSize) {
   try {
     final Collider collider = Collider.create();
     collider.addAcceptor(new TestAcceptor(socketBufferSize));
     collider.run();
   } catch (final IOException ex) {
     ex.printStackTrace();
   }
 }
示例#2
0
 public void run() {
   try {
     final Collider collider = Collider.create();
     collider.addConnector(new PubConnector(m_addr));
     collider.run();
   } catch (final IOException ex) {
     ex.printStackTrace();
   }
 }