MCPcopy Create free account
hub / github.com/cryptonomex/graphene / new_peer_just_added

Method new_peer_just_added

libraries/net/node.cpp:3852–3863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3850 }
3851
3852 void node_impl::new_peer_just_added( const peer_connection_ptr& peer )
3853 {
3854 VERIFY_CORRECT_THREAD();
3855 peer->send_message(current_time_request_message(),
3856 offsetof(current_time_request_message, request_sent_time));
3857 start_synchronizing_with_peer( peer );
3858 if( _active_connections.size() != _last_reported_number_of_connections )
3859 {
3860 _last_reported_number_of_connections = (uint32_t)_active_connections.size();
3861 _delegate->connection_count_changed( _last_reported_number_of_connections );
3862 }
3863 }
3864
3865 void node_impl::close()
3866 {

Callers

nothing calls this directly

Calls 4

send_messageMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected