Skip to content
Snippets Groups Projects
Commit ba21e8f2 authored by tho's avatar tho
Browse files

doclib: link new berlios wiki

Packets/DefaultBundle/extra_tests: use unittest include from utils /grrr
Socket/Protocols/AddressExceptions: fixes
Socket: fixed documentation
parent 73a8dc6f
No related branches found
No related tags found
No related merge requests found
Showing
with 41 additions and 46 deletions
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "../EthernetPacket.hh" #include "../EthernetPacket.hh"
#include "../IPv6Packet.hh" #include "../IPv6Packet.hh"
#include <boost/test/auto_unit_test.hpp> #include "../../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp> #include <boost/test/test_tools.hpp>
#define prefix_ #define prefix_
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
namespace senf { namespace senf {
/** \brief Base-class for INet4Address exceptions */ /** \brief Base-class for Address exceptions */
struct AddressException : public senf::Exception struct AddressException : public senf::Exception
{ {
protected: protected:
...@@ -42,13 +42,19 @@ namespace senf { ...@@ -42,13 +42,19 @@ namespace senf {
: senf::Exception(msg) {} : senf::Exception(msg) {}
}; };
/** \brief Invalid INet4 address syntax */ /** \brief Invalid address syntax */
struct AddressSyntaxException : public AddressException struct AddressSyntaxException : public AddressException
{ AddressSyntaxException() : AddressException("invalid INet4 address syntax") {} }; {
AddressSyntaxException() : AddressException("invalid address syntax") {}
AddressSyntaxException(std::string const & msg) : AddressException(msg) {}
};
/** \brief Resolver failure */ /** \brief Resolver failure */
struct UnknownHostnameException : public AddressException struct UnknownHostnameException : public AddressException
{ UnknownHostnameException() : AddressException("failed to resolve INet4 hostname") {} }; {
UnknownHostnameException() : AddressException("failed to resolve hostname") {}
UnknownHostnameException(std::string const & msg) : AddressException(msg) {}
};
} }
......
...@@ -56,11 +56,10 @@ namespace senf { ...@@ -56,11 +56,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
ConnectedRawV4SocketProtocol provides an internet protocol raw socket based on IPv4 addressing. ConnectedRawV4SocketProtocol provides an internet protocol raw socket based on IPv4 addressing.
This socket will put data written to it onto the IPv4 layer: if you call writeto don't inlude the header! This socket will put data written to it onto the IPv4 layer: if you call writeto don't inlude the header!
...@@ -125,9 +124,8 @@ namespace senf { ...@@ -125,9 +124,8 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet6Address INet6Address
......
...@@ -63,11 +63,10 @@ namespace senf { ...@@ -63,11 +63,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
ConnectedUDPv4SocketProtocol provides an internet protocol stream socket based on the UDP ConnectedUDPv4SocketProtocol provides an internet protocol stream socket based on the UDP
protocol and IPv4 addressing. protocol and IPv4 addressing.
...@@ -123,9 +122,8 @@ namespace senf { ...@@ -123,9 +122,8 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet6Address INet6Address
......
...@@ -213,7 +213,7 @@ namespace senf { ...@@ -213,7 +213,7 @@ namespace senf {
/** \brief Addressing policy supporting IPv4 addressing /** \brief Addressing policy supporting IPv4 addressing
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
This addressing policy implements addressing using Internet V4 This addressing policy implements addressing using Internet V4
addresses. addresses.
......
...@@ -58,11 +58,10 @@ namespace senf { ...@@ -58,11 +58,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
RawV4SocketProtocol provides an internet protocol raw socket based on IPv4 addressing. RawV4SocketProtocol provides an internet protocol raw socket based on IPv4 addressing.
This socket will put data written to it onto the IPv4 layer: if you call writeto don't inlude the header! This socket will put data written to it onto the IPv4 layer: if you call writeto don't inlude the header!
...@@ -127,8 +126,7 @@ namespace senf { ...@@ -127,8 +126,7 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet6Address INet6Address
......
...@@ -64,11 +64,10 @@ namespace senf { ...@@ -64,11 +64,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
TCPv4SocketProtocol provides an internet protocol stream socket based on the TCP protocol TCPv4SocketProtocol provides an internet protocol stream socket based on the TCP protocol
and IPv4 addressing. and IPv4 addressing.
...@@ -139,11 +138,10 @@ namespace senf { ...@@ -139,11 +138,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(),
ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet6Address INet6Address
TCPv6SocketProtocol provides an internet protocol stream socket based on the TCP protocol TCPv6SocketProtocol provides an internet protocol stream socket based on the TCP protocol
and IPv6 addressing. and IPv6 addressing.
......
...@@ -64,11 +64,10 @@ namespace senf { ...@@ -64,11 +64,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet4Address INet4SocketAddress
UDPv4SocketProtocol provides an internet protocol stream socket based on the UDP protocol UDPv4SocketProtocol provides an internet protocol stream socket based on the UDP protocol
and IPv4 addressing. and IPv4 addressing.
...@@ -125,8 +124,7 @@ namespace senf { ...@@ -125,8 +124,7 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
INet6Address INet6Address
......
...@@ -62,11 +62,10 @@ namespace senf { ...@@ -62,11 +62,10 @@ namespace senf {
\par Policy Interface: \par Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::writeto(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::writeto(),
ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::rcvbuf(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
LLSocketAddress LLSocketAddress
The PacketSocketProtocol provides access to the linux packet socket API. This API gives access to The PacketSocketProtocol provides access to the linux packet socket API. This API gives access to
the low level network packets. The packet socket allows read() and write() operations. The the low level network packets. The packet socket allows read() and write() operations. The
......
...@@ -58,11 +58,10 @@ namespace senf { ...@@ -58,11 +58,10 @@ namespace senf {
\par Policy Interface: (to be checked) \par Policy Interface: (to be checked)
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
UNAddress UNSocketAddress
ConnectedUNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain addressing which operates in a connected mode. ConnectedUNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain addressing which operates in a connected mode.
......
...@@ -94,7 +94,7 @@ namespace senf { ...@@ -94,7 +94,7 @@ namespace senf {
/** \brief Addressing policy supporting unix domain addressing /** \brief Addressing policy supporting unix domain addressing
\par Address Type: \par Address Type:
UNAddress UNSocketAddress
This addressing policy implements addressing using unix domain This addressing policy implements addressing using unix domain
addresses. addresses.
......
...@@ -58,11 +58,10 @@ namespace senf { ...@@ -58,11 +58,10 @@ namespace senf {
\par Policy Interface: (to be checked) \par Policy Interface: (to be checked)
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf()
\par Address Type: \par Address Type:
UNAddress UNSocketAddress
UNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain UNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain
addressing. addressing.
......
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
any necessary workarounds. any necessary workarounds.
So, instead of <tt>\#include <boost/test/auto_unit_test.hpp></tt>, you should always write So, instead of <tt>\#include <boost/test/auto_unit_test.hpp></tt>, you should always write
<tt>\#include "../Utils/auto_unit_test.hh"</tt> (with possibliy adjusted path). <pre>
#include "../Utils/auto_unit_test.hh"
</pre> (with possibliy adjusted path).
*/ */
#ifndef HH_auto_unit_test_ #ifndef HH_auto_unit_test_
......
...@@ -261,7 +261,7 @@ div.tabs li.$projectname a { background-color: #EDE497; } ...@@ -261,7 +261,7 @@ div.tabs li.$projectname a { background-color: #EDE497; }
<li><a class="ext" href="http://svn.berlios.de/viewcvs/senf/trunk/">Browse SVN</a></li> <li><a class="ext" href="http://svn.berlios.de/viewcvs/senf/trunk/">Browse SVN</a></li>
<li><a class="ext" href="http://svn.berlios.de/wsvn/senf/?op=log&rev=0&sc=0&isdir=1">ChangeLog</a></li> <li><a class="ext" href="http://svn.berlios.de/wsvn/senf/?op=log&rev=0&sc=0&isdir=1">ChangeLog</a></li>
<li><a class="ext" href="http://developer.berlios.de/projects/senf">BerliOS</a></li> <li><a class="ext" href="http://developer.berlios.de/projects/senf">BerliOS</a></li>
<li><a class="ext" href="http://openfacts.berlios.de/index-en.phtml?title=SENF+Network+Framework">Wiki</a></li> <li><a class="ext" href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:SENF_Network_Framework">Wiki</a></li>
<li><a href="@TOPDIR@/doc/html/index.html">Home</a></li> <li><a href="@TOPDIR@/doc/html/index.html">Home</a></li>
</ul> </ul>
<h2>${TITLE}</h2> <h2>${TITLE}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment