Name Description Size
active_ice_controller_factory_interface.h 1355
active_ice_controller_interface.h 3346
async_stun_tcp_socket.cc 5615
async_stun_tcp_socket.h 1892
async_stun_tcp_socket_unittest.cc server 11776
basic_async_resolver_factory.cc 1489
basic_async_resolver_factory.h 1317
basic_async_resolver_factory_unittest.cc 797
basic_ice_controller.cc 32974
basic_ice_controller.h 7084
basic_packet_socket_factory.cc 6364
basic_packet_socket_factory.h 2081
candidate_pair_interface.h 1196
connection.cc 65807
connection.h 21215
connection_info.cc 1303
connection_info.h 4171
default_ice_transport_factory.cc 1657
default_ice_transport_factory.h 1920
dtls_transport.cc 30971
dtls_transport.h 10649
dtls_transport_factory.h 1307
dtls_transport_internal.cc 621
dtls_transport_internal.h 5996
dtls_transport_unittest.cc event_log= 30062
fake_dtls_transport.h 11348
fake_ice_transport.h 14430
fake_packet_transport.h 4424
fake_port_allocator.h 10146
ice_agent_interface.h 2949
ice_controller_factory_interface.h 1323
ice_controller_interface.cc 782
ice_controller_interface.h 5862
ice_credentials_iterator.cc 1279
ice_credentials_iterator.h 1064
ice_credentials_iterator_unittest.cc 1684
ice_switch_reason.cc 1870
ice_switch_reason.h 1327
ice_transport_internal.cc 5802
ice_transport_internal.h 16808
mock_active_ice_controller.h 2924
mock_dns_resolving_packet_socket_factory.h 1810
mock_ice_agent.h 1657
mock_ice_controller.h 3229
mock_ice_transport.h 3023
p2p_constants.cc 3266
p2p_constants.h 5141
p2p_transport_channel.cc async_dns_resolver_factory= 89766
p2p_transport_channel.h 21566
p2p_transport_channel_ice_field_trials.h 2935
p2p_transport_channel_unittest.cc 277818
packet_transport_internal.cc 1978
packet_transport_internal.h 4629
packet_transport_internal_unittest.cc 1986
port.cc = false 34347
port.h 19742
port_allocator.cc 11957
port_allocator.h 25610
port_allocator_unittest.cc 15230
port_interface.cc 638
port_interface.h 8078
port_unittest.cc 162142
pseudo_tcp.cc 43179
pseudo_tcp.h tstamp(0), 9170
pseudo_tcp_unittest.cc 27626
regathering_controller.cc 3121
regathering_controller.h 4471
regathering_controller_unittest.cc pool size 7781
stun_dictionary.cc 12333
stun_dictionary.h 6893
stun_dictionary_unittest.cc 10492
stun_port.cc 23460
stun_port.h 11678
stun_port_unittest.cc 30457
stun_request.cc 11129
stun_request.h 5558
stun_request_unittest.cc 7947
stun_server.cc 3805
stun_server.h 2368
stun_server_unittest.cc 4425
tcp_port.cc This is a diagram of how TCP reconnect works for the active side. The passive side just waits for an incoming connection. - Connected: Indicate whether the TCP socket is connected. - Writable: Whether the stun binding is completed. Sending a data packet before stun binding completed will trigger IPC socket layer to shutdown the connection. - PendingTCP: `connection_pending_` indicates whether there is an outstanding TCP connection in progress. - PretendWri: Tracked by `pretending_to_be_writable_`. Marking connection as WRITE_TIMEOUT will cause the connection be deleted. Instead, we're "pretending" we're still writable for a period of time such that reconnect could work. Data could only be sent in state 3. Sening data during state 2 & 6 will get EWOULDBLOCK, 4 & 5 EPIPE. OS Timeout 7 -------------+ +----------------------->|Connected: N | | |Writable: N | Timeout | Timeout |Connection is |<----------------+ | +------------------->|Dead | | | | +--------------+ | | | ^ | | | OnClose | | | | +-----------------------+ | | | | | | |Timeout | | | v | | | | 4 +----------+ 5 -----+--+--+ 6 -----+-----+ | |Connected: N|Send() or |Connected: N| |Connected: Y| | |Writable: Y|Ping() |Writable: Y|OnConnect |Writable: Y| | |PendingTCP:N+--------> |PendingTCP:Y+---------> |PendingTCP:N| | |PretendWri:Y| |PretendWri:Y| |PretendWri:Y| | +-----+------+ +------------+ +---+--+-----+ | ^ ^ | | | | | OnClose | | | | +----------------------------------------------+ | | | | | | Stun Binding Completed | | | | | | OnClose | | +------------------------------------------------+ | | | v 1 -----------+ 2 -----------+Stun 3 -----------+ |Connected: N| |Connected: Y|Binding |Connected: Y| |Writable: N|OnConnect |Writable: N|Completed |Writable: Y| |PendingTCP:Y+---------> |PendingTCP:N+--------> |PendingTCP:N| |PretendWri:N| |PretendWri:N| |PretendWri:N| +------------+ +------------+ +------------+ 24307
tcp_port.h 7453
tcp_port_unittest.cc 10853
test_stun_server.cc 1765
test_stun_server.h 1724
test_turn_customizer.h 1670
test_turn_server.h 5952
transport_description.cc renomination= 6227
transport_description.h 4969
transport_description_factory.cc 5893
transport_description_factory.h 3579
transport_description_factory_unittest.cc 16293
transport_description_unittest.cc 1989
transport_info.h 1218
turn_port.cc 71101
turn_port.h 15815
turn_port_unittest.cc 82907
turn_server.cc 31821
turn_server.h 13493
turn_server_unittest.cc 2437
udp_port.h 586
wrapping_active_ice_controller.cc 8472
wrapping_active_ice_controller.h 4068
wrapping_active_ice_controller_unittest.cc 11957