diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-07-29 11:41:36 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-07-29 15:44:30 -0400 |
commit | 52cc780c90d31cd41b89494ea2770c4f9ed47247 (patch) | |
tree | 6aa3100a7dc69515c37339ec40cd1539e3136864 /src/io/fd.hpp | |
parent | 98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd (diff) | |
download | tmwa-52cc780c90d31cd41b89494ea2770c4f9ed47247.tar.gz tmwa-52cc780c90d31cd41b89494ea2770c4f9ed47247.tar.bz2 tmwa-52cc780c90d31cd41b89494ea2770c4f9ed47247.tar.xz tmwa-52cc780c90d31cd41b89494ea2770c4f9ed47247.zip |
replace socket write with send with MSG_NOSIGNAL
Diffstat (limited to 'src/io/fd.hpp')
-rw-r--r-- | src/io/fd.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/fd.hpp b/src/io/fd.hpp index 03a8b44..00aad8f 100644 --- a/src/io/fd.hpp +++ b/src/io/fd.hpp @@ -77,6 +77,7 @@ namespace io ssize_t read(void *buf, size_t count); ssize_t write(const void *buf, size_t count); + ssize_t send(const void *buf, size_t count, int flags); ssize_t pread(void *buf, size_t count, off_t offset); ssize_t pwrite(const void *buf, size_t count, off_t offset); ssize_t readv(const struct iovec *iov, int iovcnt); |