IpConnection.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * IpConnection.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "IpAddress.h"
14 
22 {
23 public:
31  bool joinMulticastGroup(IpAddress localIp, IpAddress multicastIp);
32 
39  bool joinMulticastGroup(IpAddress multicastIp)
40  {
41  return joinMulticastGroup(INADDR_NONE, multicastIp);
42  }
43 
51  bool leaveMulticastGroup(IpAddress localIp, IpAddress multicastIp);
52 
59  bool leaveMulticastGroup(IpAddress multicastIp)
60  {
61  return leaveMulticastGroup(INADDR_NONE, multicastIp);
62  }
63 };
64 
A class to make it easier to handle and pass around IP addresses.
Definition: IpAddress.h:43
bool leaveMulticastGroup(IpAddress localIp, IpAddress multicastIp)
Uses IGMP to remove a local network interface from multicast group.
bool joinMulticastGroup(IpAddress multicastIp)
Uses IGMP to add all local network interfaces to multicast group.
Definition: IpConnection.h:39
bool joinMulticastGroup(IpAddress localIp, IpAddress multicastIp)
Uses IGMP to add a local network interface to multicast group.
bool leaveMulticastGroup(IpAddress multicastIp)
Uses IGMP to remove all local network interfaces from multicast group.
Definition: IpConnection.h:59
Definition: IpConnection.h:21
#define INADDR_NONE
Definition: IpAddress.h:205