wip
Dependents: EthernetInterface_vz
Fork of Socket by
Diff: UDPSocket.h
- Revision:
- 16:2d471deff212
- Parent:
- 11:3d83c348fb8b
- Child:
- 18:d56496360fc9
--- 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