private void on_ack_connect_gate() { var udp_ch = _udp_conn.connect(_udp_ip, _udp_port); _client_call_gate_fast = new caller.client_call_gate_fast(udp_ch); _client_call_gate_fast.refresh_udp_end_point(); _heartbeats = service.timerservice.Tick; _client_call_gate.heartbeats(service.timerservice.Tick); timer.addticktime(5 * 1000, heartbeats); timer.addticktime(10 * 1000, refresh_udp_link); if (onConnectGate != null) { onConnectGate(); } }
public void bind_udpchannel(juggle.Ichannel udp_ch) { _client_call_gate_fast = new caller.client_call_gate_fast(udp_ch); }