Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,14 @@ struct Socket {
assert(m_sock != Invalid);
if ((m_sock == Invalid) || (buffer == nullptr) || (size == 0))
return 0;
int flags =
#ifdef _WIN32
0;
#else
MSG_NOSIGNAL;
#endif
return static_cast<int>(
::send(m_sock, reinterpret_cast<char const *>(buffer), size, 0));
::send(m_sock, reinterpret_cast<char const *>(buffer), size, flags));
}

int sendto(void const *buffer, size_t size, int flags, SocketAddr &destAddr) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,14 @@ struct Socket {
assert(m_sock != Invalid);
if ((m_sock == Invalid) || (buffer == nullptr) || (size == 0))
return 0;
int flags =
#ifdef _WIN32
0;
#else
MSG_NOSIGNAL;
#endif
return static_cast<int>(
::send(m_sock, reinterpret_cast<char const *>(buffer), size, 0));
::send(m_sock, reinterpret_cast<char const *>(buffer), size, flags));
}

int sendto(void const *buffer, size_t size, int flags, SocketAddr &destAddr) {
Expand Down