X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/0d50a176b9084ac3badd649fd1c122cb48bcdc62..d22d22101e7dda5da951a76408ec32708072849e:/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 >