I am building my own bitcoin client, and I have most of the protocol working from https://en.bitcoin.it/wiki/Protocol_Specification.
I successfully make a connection with the version and verack commands. And when I send a ping, I get back a pong with the same nonce.
The problem I am having now is that I don't get the expected response to my getblocks message. I build the block locator using the hash of the genesis block header, and I serialize the message and send it.
But then I don't get the inv message with MSG_BLOCK like I expect.
These are the raw bytes that I send as my getblocks message:
This is built following the specification here https://en.bitcoin.it/wiki/Protocol_Specification#getblocks.