aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-03-04 20:18:37 +0100
committerGravatar Attila Molnar2015-03-04 20:18:37 +0100
commite0e1becc2f9129203966e69b2919582c11ab86f7 (patch)
tree960bc91c89790914a84042f2684b4bd82d556981 /src/inspsocket.cpp
parentAdd writev() wrapper for Windows (diff)
Add SocketEngine::WriteV()
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index ee5287e5f..db005b1a1 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -25,14 +25,6 @@
#include "inspircd.h"
#include "iohook.h"
-#ifndef DISABLE_WRITEV
-#include <sys/uio.h>
-#endif
-
-#ifndef IOV_MAX
-#define IOV_MAX 1024
-#endif
-
BufferedSocket::BufferedSocket()
{
Timeout = NULL;
@@ -348,7 +340,7 @@ void StreamSocket::DoWrite()
iovecs[i].iov_len = sendq[i].length();
rv_max += sendq[i].length();
}
- rv = writev(fd, iovecs, bufcount);
+ rv = SocketEngine::WriteV(this, iovecs, bufcount);
}
if (rv == (int)sendq_len)