How is a new block transmitted?

In a bitcoin network, when a miner discovers a new block, it needs to transmit to other nodes, whether it transmits only to the nodes that have established 8 TCP connections or if it can transmit the new block through the other 1024 nodes that connect actively I hope to get the result according to the code and tell me what code file should I analyze?