Beispiel #1
0
 public void start() throws Exception {
   ct = getConnectionTable(reaper_interval, conn_expire_time, bind_addr, start_port);
   ct.addConnectionListener(this);
   ct.setReceiveBufferSize(recv_buf_size);
   ct.setSendBufferSize(send_buf_size);
   local_addr = ct.getLocalAddress();
   if (additional_data != null && local_addr instanceof IpAddress)
     ((IpAddress) local_addr).setAdditionalData(additional_data);
   passUp(new Event(Event.SET_LOCAL_ADDRESS, local_addr));
 }
Beispiel #2
0
 public void start() throws Exception {
   ct =
       getConnectionTable(
           reaper_interval, conn_expire_time, bind_addr, external_addr, start_port, end_port);
   ct.setUseSendQueues(use_send_queues);
   ct.setSendQueueSize(send_queue_size);
   // ct.addConnectionListener(this);
   ct.setReceiveBufferSize(recv_buf_size);
   ct.setSendBufferSize(send_buf_size);
   ct.setSocketConnectionTimeout(sock_conn_timeout);
   ct.setTcpNodelay(tcp_nodelay);
   ct.setLinger(linger);
   local_addr = ct.getLocalAddress();
   if (additional_data != null && local_addr instanceof IpAddress)
     ((IpAddress) local_addr).setAdditionalData(additional_data);
   super.start();
 }