Author

Topic: Bitcoin's p2p networking files (Read 861 times)

newbie
Activity: 7
Merit: 0
February 05, 2016, 10:56:24 AM
#3
Thanks for the response. This is really helpful.

--Ryan
staff
Activity: 3458
Merit: 6793
Just writing some code
February 04, 2016, 06:18:55 PM
#2
Yes. protocol.cpp and protocol.h has stuff there with the p2p messages and main.cpp and main.h has stuff related to receiving and handling network messages.

You should also look at the documentation about the p2p network on bitcoin.org: https://bitcoin.org/en/developer-reference#p2p-network
newbie
Activity: 7
Merit: 0
February 04, 2016, 06:12:50 PM
#1
Hey,

I'm working on an p2p application, and I don't really know how to do it well, so I was thinking I could use bitcoin's p2p code as a learning tool.

Where in the source is all of the p2p stuff? I found bitcoin/src/net.cpp, and that looks like it has a lot of it, but is there more files?

Thanks!
Ryan
Jump to: