X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/0d50a176b9084ac3badd649fd1c122cb48bcdc62..3e4bff1a7e8e2d1f1ecb0f04440946b5eb78a591:/src/socket/basic_socket.hpp?ds=sidebyside diff --git a/src/socket/basic_socket.hpp b/src/socket/basic_socket.hpp index 3f6f779..9135f52 100644 --- a/src/socket/basic_socket.hpp +++ b/src/socket/basic_socket.hpp @@ -600,30 +600,30 @@ ssize_t posixx::socket::basic_socket< TSockTraits >::recv(void* buf, size_t n, } /* - template< typename TSockTraits > - inline - ssize_t posixx::socket::basic_socket< TSockTraits >::send(const msghdr* msg, int flags) - { - ssize_t s = ::sendmsg(_fd, msg, flags); - if (s == -1) - throw error("sendmsg"); - if (s == 0) - throw error("send"); - return s; - } - - template< typename TSockTraits > - inline - ssize_t posixx::socket::basic_socket< TSockTraits >::recv(struct msghdr* msg, int flags) - { - ssize_t s = ::recvmsg(_fd, msg, flags); - if (s == -1) - throw error("recvmsg"); - if (s == 0) - throw error("send"); - return s; - } - */ +template< typename TSockTraits > +inline +ssize_t posixx::socket::basic_socket< TSockTraits >::send(const msghdr* msg, int flags) +{ + ssize_t s = ::sendmsg(_fd, msg, flags); + if (s == -1) + throw error("sendmsg"); + if (s == 0) + throw error("send"); + return s; +} + +template< typename TSockTraits > +inline +ssize_t posixx::socket::basic_socket< TSockTraits >::recv(struct msghdr* msg, int flags) +{ + ssize_t s = ::recvmsg(_fd, msg, flags); + if (s == -1) + throw error("recvmsg"); + if (s == 0) + throw error("send"); + return s; +} +*/ template< typename TSockTraits > template< typename TSockOpt >