* @brief This class represents a Pseudo IP header used to compute checksum of
* transport level protocols.
*
+ * When TCP runs over IPv4, the method used to compute the checksum is defined
+ * in RFC 793.
+ *
* Pseudo IPv4 header format used by TCP and UDP checksums:
*
* @code
<< endl;
}
-bool TcpIpv4Segment::read( std::istream &is )
+/**
+ * @brief Read the TCP Segment from the @c istream.
+ *
+ * @param is The input stream.
+ *
+ * @return @c true if the read was successful, or @c false if an error occured.
+ */
+bool TcpIpv4Segment::read( istream &is )
{
is.clear();
return is.fail();
}
-bool TcpIpv4Segment::write( std::ostream &os ) const
+/**
+ * @brief Write the TCP Segment to the @c ostream.
+ *
+ * @param os The output stream.
+ *
+ * @return @c true if the write was successful, or @c false if an error occured.
+ */
+bool TcpIpv4Segment::write( ostream &os ) const
{
os.clear();