View Single Post
Old Mar 7th, 2008, 3:16 PM   #16
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
Re: Simple BSD Sockets Problem

Your separate commands send the USER command then the NICK command, but your all in one sends NICK then USER. I don't know if that would cause the problem, but it would be worth checking out.

Also I would be tempted to use sizeof(userCommand) - 1 as the length to send, otherwise you are sending an extra zero byte which might be confusing the other end.
The Dark is offline   Reply With Quote