func (t *Torrent) initiateConn(peer Peer) {
	if peer.Id == t.cl.peerID {
		return
	}

	if t.cl.badPeerAddr(peer.Addr) && !peer.Trusted {
		return
	}
	addr := peer.Addr
	if t.addrActive(addr.String()) {
		return
	}
	t.halfOpen[addr.String()] = peer
	go t.cl.outgoingConnection(t, addr, peer.Source, peer.Trusted)
}
// Start the process of connecting to the given peer for the given torrent if appropriate.
Start the process of connecting to the given peer for the given torrent if appropriate.
// Start the process of connecting to the given peer for the given torrent if appropriate .
func (t *Torrent) initiateConn(peer Peer) {
	if peer.Id == t.cl.peerID {
		return
	}
	if t.cl.badPeerAddr(peer.Addr) && !peer.Trusted {
		return
	}
	addr := peer.Addr
	if t.addrActive(addr.String()) {
		return
	}
	t.halfOpen[addr.String()] = peer
	go t.cl.outgoingConnection(t, addr, peer.Source, peer.Trusted)
}
func ( t * Torrent ) initiateConn ( peer Peer ) { if peer . Id == t . cl . peerID { return } if t . cl . badPeerAddr ( peer . Addr ) && ! peer . Trusted { return } addr := peer . Addr if t . addrActive ( addr . String ( ) ) { return } t . halfOpen [ addr . String ( ) ] = peer go t . cl . outgoingConnection ( t , addr , peer . Source , peer . Trusted ) }
Start the process of connecting to the given peer for the given torrent if appropriate.
Start the process of connecting to the given peer for the given torrent if appropriate .