/** Setup the Protocol instance acording to the configuration string */ public boolean setProperties(Properties props) { super.setProperties(props); if (props.size() > 0) { log.error("the following properties are not recognized: " + props); return false; } return true; }
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(); }
public void stop() { ct.stop(); super.stop(); }