Linking...
mongoose.obj : error LNK2019: unresolved external symbol _send@16 referenced in function _push
static uint64_t
push(int fd, SOCKET sock, SSL *ssl, const char *buf, uint64_t len)
{
uint64_t sent;
int n, k;
sent = 0;
while (sent < len) {
/* How many bytes we send in this iteration */
k = len - sent > INT_MAX ? INT_MAX : (int) (len - sent);
if (ssl != NULL) {
n = SSL_write(ssl, buf + sent, k);
} else if (fd != -1) {
n = write(fd, buf + sent, k);
} else {
n = send(sock, buf + sent, k, 0);
}
if (n < 0)
break;
sent += n;
}
return (sent);
}