From: jmo Date: Fri, 12 Mar 2010 15:57:56 +0000 (+0000) Subject: fix packet socket setup example X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=5a975981587c43785e7a72fa053667fb3ad6a08b;p=senf.git fix packet socket setup example git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1586 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Packets/Mainpage.dox b/senf/Packets/Mainpage.dox index 9323740..f36ac13 100644 --- a/senf/Packets/Mainpage.dox +++ b/senf/Packets/Mainpage.dox @@ -282,7 +282,8 @@ checksums etc). Now the packet is ready. We may now send it out using a packet socket \code - senf::PacketSocketHandle sock ("eth0"); + senf::PacketSocketHandle sock(); + sock.bind( senf::LLSocketAddress("eth0")); sock.write(eth.data()); \endcode @@ -293,7 +294,8 @@ from a packet socket handle: \code - senf::PacketSocketHandle sock ("eth0"); + senf::PacketSocketHandle sock(); + sock.bind( senf::LLSocketAddress("eth0")); senf::EthernetPacket packet (senf::EthernetPacket::create(senf::noinit)); sock.read(packet.data(),0u); \endcode