mcproxy/mcproxy/include/proxy/mld_receiver.hpp
Go to the documentation of this file.00001 /* 00002 * This file is part of mcproxy. 00003 * 00004 * mcproxy is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 3 of the License, or (at your 00007 * option) any later version. 00008 * 00009 * mcproxy is distributed in the hope that it will be useful, but 00010 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00011 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00012 * License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with mcproxy; see the file COPYING.LESSER. 00016 * 00017 * written by Sebastian Woelke, in cooperation with: 00018 * INET group, Hamburg University of Applied Sciences, 00019 * Website: http://mcproxy.realmv6.org/ 00020 */ 00021 00027 #ifndef MLD_RECEIVER_HPP 00028 #define MLD_RECEIVER_HPP 00029 00030 #include "include/proxy/receiver.hpp" 00031 00035 #define MLD_RECEIVER_KERNEL_MSG 0 00036 00040 class mld_receiver : public receiver { 00041 private: 00042 int get_ctrl_min_size(); 00043 int get_iov_min_size(); 00044 void analyse_packet(struct msghdr* msg, int info_size); 00045 public: 00046 bool init(int addr_family, int version, mroute_socket* mrt_sock); 00047 00048 mld_receiver(); 00049 }; 00050 00051 #endif // MLD_RECEIVER_HPP 00052