i dont want to sound rude but i'm sure you wont get to have
any working version finished. promise.
why dont you start writing yourself? i'm sure you havent even read the protocol specs...
anyway, there are many opensource clients, why dont you take one of those as a kickstart?
for example you could take ours:
www.darkalien.com