i am still fairly new to network programming and have been reading up on it but can't find any solid examples for what i'm looking for

my goal is to make a bot that connects to a server via the battle.net protocol, and part of it involves parsing data from the packets that i receive during connecting, but i am pretty clueless on how to get my program to read incoming packet data from the battle.net port (6112), i am using winsocks, and i can successfully create a socket but i don't know what to do after that

i have tried using this: http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html, but no luck since i'm not entirely sure what i'm doing

any help is appreciated