sizeof(reply) evaluates to the size of a char * , aka size of a pointer. Use strlen . send(client, reply, strlen(reply), 0);.
確定! 回上一頁