Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more
Diff: UDPSocket.h
- Revision:
- 16:2d471deff212
- Parent:
- 11:3d83c348fb8b
- Child:
- 18:d56496360fc9
diff -r 41e3af01f58e -r 2d471deff212 UDPSocket.h
--- a/UDPSocket.h Mon Aug 13 09:38:00 2012 +0000
+++ b/UDPSocket.h Fri Mar 01 15:30:16 2013 +0000
@@ -45,6 +45,17 @@
*/
int bind(int port);
+ /** Join the multicast group at the given address
+ \param address The address of the multicast group
+ \return 0 on success, -1 on failure.
+ */
+ int join_multicast_group(const char* address);
+
+ /** Set the socket in broadcasting mode
+ \return 0 on success, -1 on failure.
+ */
+ int set_broadcasting(void);
+
/** Send a packet to a remote endpoint
\param remote The remote endpoint
\param packet The packet to be sent
