<p>The source code for Bitcoin can be found at <a href="https://github.com/bitcoin/bitcoin" rel="nofollow">https://github.com/bitcoin/bitcoin</a>. The P2P part is integrated within the core Bitcoin code, and is not available separately.</p>

CC BY-SA 3.0
2014-04-12T06:35:30.580Z
https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp this part includes the network portion. But i don't know whether it is tightly coupled with other parts of the bitcoin source code. Could you able to advise me on how to separate P2P network portion from this?
tdumidu
CC BY-SA 3.0
2014-04-12T07:32:13.253Z
If you are intending to create your own virtual currency, then you will already have the skills to do this. The networking part is not the hard part.
Greg Hewgill
CC BY-SA 3.0
2014-04-12T09:06:09.333Z
I'm only designing a new protocol. I need to reuse the existing Bitcoin P2P network source code. So i need to get an idea how it works. Could you able to provide me some explanations about this source code?
tdumidu
CC BY-SA 3.0
2014-04-12T06:26:41.653Z
2014-04-12T06:26:41.653Z
Greg Hewgill
<p>Does anybody know a place to get the source code of the Bitcoin Peer to Peer network? I only need the P2P network portion of the Bitcoin protocol. I am going to implement a new virtual currency. So i am going to reuse the existing bitcoin peer to peer network infrastructure for my project. Can someone advise me on this?</p>

<development><peers><network>
Bitcoin peer to peer network source code
tdumidu
# Bitcoin peer to peer network source code

(Asked by: username_0 on 2014-04-12)

Does anybody know a place to get the source code of the Bitcoin Peer to Peer network? I only need the P2P network portion of the Bitcoin protocol. I am going to implement a new virtual currency. So i am going to reuse the existing bitcoin peer to peer network infrastructure for my project. Can someone advise me on this?

**Tags:** development, peers, network


---

## 1 answers

### Answer by username_1 on 2014-04-12. Score: 2 | Accepted answer

The source code for Bitcoin can be found at <https://github.com/bitcoin/bitcoin>. The P2P part is integrated within the core Bitcoin code, and is not available separately.

> **Comments:**
> **username_0**: https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp this part includes the network portion. But i don't know whether it is tightly coupled with other parts of the bitcoin source code. Could you able to advise me on how to separate P2P network portion from this?  
> **username_1**: If you are intending to create your own virtual currency, then you will already have the skills to do this. The networking part is not the hard part.  
> **username_0**: I'm only designing a new protocol. I need to reuse the existing Bitcoin P2P network source code. So i need to get an idea how it works. Could you able to provide me some explanations about this source code?  

---

