From: dw6 Date: Wed, 5 Dec 2007 12:17:54 +0000 (+0000) Subject: adding documentation concerning different read behaviour X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=26eded03cee344398c3c6ef2ac5cb5fb9b0f24e9;p=senf.git adding documentation concerning different read behaviour git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@544 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/INet/RawInetSocketHandle.hh b/Socket/Protocols/INet/RawInetSocketHandle.hh index 64dec72..13d180f 100644 --- a/Socket/Protocols/INet/RawInetSocketHandle.hh +++ b/Socket/Protocols/INet/RawInetSocketHandle.hh @@ -63,6 +63,9 @@ namespace senf { INet4Address 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! + On the other hand `read` will return the packet data including the IP header. + This behaviour is strange and differs from the behaviour of IPv6 RAW sockets and should be changed in the future. This class is utilized as the protocol class of the ProtocolClientSocketHandle via the Socket Handle typedefs above. @@ -134,6 +137,9 @@ namespace senf { INet6Address RawV6SocketProtocol provides an internet protocol stream socket based on IPv6 addressing. + This socket will put data written to it onto the IPv6 layer: if you call writeto don't inlude the header! + On the other hand `read` will return the packet data on top of the IPv6 layer, excluding the IP header. + NB: This behaviour is differs from the behaviour of IPv4 RAW sockets. This class is utilized as the protocol class of the ProtocolClientSocketHandle via the Socket Handle typedefs above.