inline
posixx::error::error() throw():
- std::runtime_error(strerror(errno)), no(errno)
+ std::runtime_error(strerror(errno)), no(errno)
{
}
inline
posixx::error::error(const std::string& where) throw ():
- std::runtime_error(where + ": " + strerror(errno)), no(errno)
+ std::runtime_error(where + ": " + strerror(errno)), no(errno)
{
}
}
/*
- 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 >
TESTPRG = test_suite
TESTCMD = ./$(TESTPRG) --detect_memory_leak=1 --report_level=short \
-# --build_info=yes --log_level=test_suite \
-# | grep -v "Entering test case " | grep -v "Leaving test case"
+ #--build_info=yes --log_level=test_suite \
+ #| grep -v "Entering test case " | grep -v "Leaving test case"
VALGRIND = valgrind --tool=memcheck --leak-check=yes --db-attach=no \
--num-callers=24 --leak-resolution=high --track-fds=yes \