your send function looks strange. Does it work?
I would write it a little better
send(connected, "100",strlen("100"),0);
normally is such code written in that way
int cnt = 100; char *buffer = new char[cnt];
memcpy( buffer, someSourceData, dataSize );send(connected, buffer,dataSize,0);