+// Copyright Leandro Lucarella 2008 - 2010.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file COPYING or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+
#ifndef POSIXX_SOCKET_BASIC_SOCKET_HPP_
#define POSIXX_SOCKET_BASIC_SOCKET_HPP_
}
/*
- 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 >