#include<string.h>
char* message = "Hello World";
write(sock, message, strlen(message)); //strlen(message) == 11if ( bytes_read != 0 )
{
while( i == bytes_read ) // здесь i == 0 а bytes_read != 0 что означает ( i != butes_read)
// условие не выполняется блок пропускается
{
cout << buf[i];
i = i + 1;
}
}if ( bytes_read > 0 )
{
while( i != bytes_read ) // здесь i == 0
{
cout << buf[i];
++i;
}
}
Boost.Asio C++ Network Programming.
И как выше посоветовали Qt.
Как вариант:
Code::Block+GCC+Clang+Boost