Name Description Size
active_ice_controller_factory_interface.h 1355
active_ice_controller_interface.h 3286
async_stun_tcp_socket.cc len 5663
async_stun_tcp_socket.h 1914
async_stun_tcp_socket_unittest.cc socket 11765
basic_async_resolver_factory.cc 1457
basic_async_resolver_factory.h 1322
basic_ice_controller.cc 33695
basic_ice_controller.h 7463
basic_packet_socket_factory.cc 6549
basic_packet_socket_factory.h 2033
candidate_pair_interface.h 1206
connection.cc 69066
connection.h 21663
connection_info.cc 1301
connection_info.h 4177
default_ice_transport_factory.cc 1811
default_ice_transport_factory.h 1958
dtls_transport.h 652
dtls_transport_internal.h 688
fake_ice_transport.h 598
fake_port_allocator.h 602
ice_agent_interface.h 3003
ice_controller_factory_interface.h 1491
ice_controller_interface.cc 780
ice_controller_interface.h 5882
ice_credentials_iterator.cc 1330
ice_credentials_iterator.h 1064
ice_credentials_iterator_unittest.cc 1730
ice_switch_reason.cc 1868
ice_switch_reason.h 1327
ice_transport_internal.cc 10058
ice_transport_internal.h 18041
mock_ice_agent.h 557
mock_ice_controller.h 577
mock_ice_transport.h 573
p2p_constants.cc 3303
p2p_constants.h 5331
p2p_transport_channel.cc 93182
p2p_transport_channel.h 22687
p2p_transport_channel_ice_field_trials.h 2918
p2p_transport_channel_unittest.cc 313465
packet_transport_internal.cc opt 2180
packet_transport_internal.h 4610
packet_transport_internal_unittest.cc 2087
port.cc = false 36331
port.h 20010
port_allocator.cc 12186
port_allocator.h 25399
port_allocator_unittest.cc 15304
port_interface.cc 580
port_interface.h 8057
port_unittest.cc 171704
regathering_controller.cc 3256
regathering_controller.h 4581
regathering_controller_unittest.cc pool size 7493
stun_dictionary.cc 12078
stun_dictionary.h 6933
stun_dictionary_unittest.cc 10610
stun_port.cc 23979
stun_port.h 9429
stun_port_unittest.cc 47493
stun_request.cc 11242
stun_request.h response 5538
stun_request_unittest.cc 8236
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| +------------+ +------------+ +------------+ 25004
tcp_port.h 6968
tcp_port_unittest.cc 18561
transport_description.cc renomination= 6283
transport_description.h 4801
transport_description_factory.cc 5971
transport_description_factory.h 3511
transport_description_factory_unittest.cc 16580
transport_description_unittest.cc 2033
transport_info.h 1155
turn_port.cc 69874
turn_port.h 14185
turn_port_unittest.cc 100467
wrapping_active_ice_controller.cc 8511
wrapping_active_ice_controller.h 4022
wrapping_active_ice_controller_unittest.cc 12226