X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FINet%2FConnectedRawINetSocketHandle.hh;h=ad43e9289def9baa65101b58d887e17f0e23d173;hb=b9bc7df8121501f84f5a48e854ebaa4984a44932;hp=ddcec24d47cedc2d970bb687448682f63c8a98cb;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Socket/Protocols/INet/ConnectedRawINetSocketHandle.hh b/senf/Socket/Protocols/INet/ConnectedRawINetSocketHandle.hh index ddcec24..ad43e92 100644 --- a/senf/Socket/Protocols/INet/ConnectedRawINetSocketHandle.hh +++ b/senf/Socket/Protocols/INet/ConnectedRawINetSocketHandle.hh @@ -24,7 +24,7 @@ #define CONNECTEDHH_SENF_Socket_Protocols_INet_RawINetSocketHandle_ // Custom includes -#include "INetSocketProtocol.hh" +#include "INetAddressing.hh" #include "RawINetSocketProtocol.hh" #include #include @@ -61,14 +61,20 @@ namespace senf { \par Address Type: INet4SocketAddress - 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! + 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 include + 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 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. + \attention + If socket handle with ConnectedRawV4SocketProtocol is connected via INet4SocketAddress, the port number + is interpreted as protocol number for IPv4 layer. Please refer manpage: "man 7 raw". + \see ConnectedRawV6SocketProtocol \see RawV4SocketProtocol \see RawV6SocketProtocol @@ -137,6 +143,10 @@ namespace senf { This class is utilized as the protocol class of the ProtocolClientSocketHandle via the Socket Handle typedefs above. + \attention + If socket handle with ConnectedRawV6SocketProtocol is connected via INet6SocketAddress, the port number + is interpreted as protocol number for IPv6 layer. Please refer manpage: "man 7 ipv6". + \see ConnectedRawV4SocketProtocol \see RawV4SocketProtocol \see RawV6SocketProtocol