Sir,
I've a master degree in embedded systems, that is, I worked in many socket problems during all my courses and all my profesionnal carieer.
Depending on what are your needs, I could solve your problem in few hours. You'll just let me know what you're asking for, and I'll tell you how many hours exactly I need to do this job. Your code will be well commented, documented and tested so that you have a full working program.
You just give me your code, and tell me what you want to modify, and we'll stay in touch. I'd be glad working with you on this project, so I look forward to your response.
Regards