const char* buffer = message.c_str();
while (length > 0)
{
+#ifdef __APPLE__
+ int n = send(clientFD, buffer, length, 0);
+#else
int n = send(clientFD, buffer, length, MSG_NOSIGNAL);
+#endif
if (!(n > 0))
{
return false;
bool clientConnected = false;
struct sockaddr_in client;
- unsigned int clientAddrLen = sizeof(client);
+ socklen_t clientAddrLen = sizeof(client);
FD_ZERO(&rfds);
while (true)