want to study the Satoshi (bitcoind) code
Take a look at the Bitcoin protocol specification and in more general the Bitcoin wiki. Also, the original paper of Satoshi is a good read.

EDIT: I recently found an article on Bitcoin Talk about the Satoshi client code structure. It's an interesting read too!