PHPackages                             clue/multicast-react - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. clue/multicast-react

ActiveLibrary[Queues &amp; Workers](/categories/queues)

clue/multicast-react
====================

Simple, event-driven multicast UDP message client and server for ReactPHP.

v1.2.0(2y ago)2569.0k↓49.5%13[3 issues](https://github.com/clue/reactphp-multicast/issues)3MITPHPPHP &gt;=5.3

Since Mar 24Pushed 1y ago6 watchersCompare

[ Source](https://github.com/clue/reactphp-multicast)[ Packagist](https://packagist.org/packages/clue/multicast-react)[ Docs](https://github.com/clue/reactphp-multicast)[ Fund](https://clue.engineering/support)[ GitHub Sponsors](https://github.com/clue)[ RSS](/packages/clue-multicast-react/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (3)

clue/reactphp-multicast
=======================

[](#cluereactphp-multicast)

[![CI status](https://github.com/clue/reactphp-multicast/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-multicast/actions)[![installs on Packagist](https://camo.githubusercontent.com/a1fde3ad5012beeff285f63d9ebdce0b46f1711a26f0c7ddadb99ebf1043ff22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c75652f6d756c7469636173742d72656163743f636f6c6f723d626c7565266c6162656c3d696e7374616c6c732532306f6e2532305061636b6167697374)](https://packagist.org/packages/clue/multicast-react)

Simple, event-driven multicast UDP message client and server for [ReactPHP](https://reactphp.org/).

Multicast UDP messages are needed for quite a few (low-level) networking protocols. Among others, multicast networking is the basis for mDNS (Multicast DNS), HTTPMU (Multicast UDP HTTP Messages), UPnP/SSDP (Universal Plug and Play / Simple Service Discovery Protocol) and others. This library exposes a simple subset of commonly needed functionality for multicast networking through an easy to use API.

**Table of contents**

- [Support us](#support-us)
- [Quickstart example](#quickstart-example)
- [Usage](#usage)
    - [Factory](#factory)
        - [createSender()](#createsender)
        - [createReceiver()](#createreceiver)
    - [SocketInterface](#socketinterface)
- [Install](#install)
- [Tests](#tests)
- [License](#license)

Support us
----------

[](#support-us)

We invest a lot of time developing, maintaining and updating our awesome open-source projects. You can help us sustain this high-quality of our work by [becoming a sponsor on GitHub](https://github.com/sponsors/clue). Sponsors get numerous benefits in return, see our [sponsoring page](https://github.com/sponsors/clue)for details.

Let's take these projects to the next level together! 🚀

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to create a simple echo server that listens for incoming multicast messages:

```
