The problem with this community is that it's greedy and full of pr0 1337 c0d3rs that program from their wheelchair.
No to be serious, you won't really find a lot of info here. Your best bet? Grab an old client that has the least obfuscation and look a bit around. Refactor some, edit some, and whip up a simple server. User work from others as reference and try to find your way to your emulation.