Notable PHP package: PHP UDP Hole Punching - PHP Classes
PHP Classes Notable PHP package PHP UDP Hole PunchingFrom: PHP Classes Notable <firstname.lastname@example.org>, sent: 13:43:19 - 30.12.2016
Notable PHP package: PHP UDP Hole Punching
Agile Incident Resolution for DevOps
Increase uptime of your apps, services and infrastructure with PagerDuty. With full incident visibility, you can respond to and resolve issues faster. Try it free.
Rofl, a PHP package is considered Notable when it does something different that is worth noting.
If you have also written Notable packages, contribute them to the PHP Classes site to get your work more exposure.
Now you can also win a Big elePHPant as one of the possible prizes you can win every month. Check the complete list of prizes here: List of prizes
PHP UDP Hole Punching
Connect to network peers through a UDP server
When you want to connect to a remote machine that is connected to a group of peers but you do not know its address, one common solution is to connect to central server and ask the addresses of the peers to communicate with them.
This technique is used by NAT servers (Network Address Translators) that are often running on router machines in order to route requests to remote machines from local network computers.
This process is called hole punching because it uses an intermediary server to get the addresses of the remote machines, so the client can communicate with them.
This PHP package implements a server with one class that can keeps the list of connected client machines and returns the list of peer addresses and ports.
The client class connects to the server class to get the peer machine address list, so it can send messages to them using UDP packets.
Networking, PHP 5, P2P
This package can be used to connect to network peers through a UDP server.
There is a client class that sends UDP packets to a server listening to a given port on a given IP address to request the list of other network clients that connected to the server.
The server class returns the list of IP addresses and ports of connected clients and sends another UDP message to IP address and port of each client.
The server also keeps sending ping packets to determine if each client is still connected.
|Rofl you are getting this message as free service for being a user of the PHP Classes site to which you registered voluntarily using the email address email@example.com. If you wish to unsubscribe go to the unsubscribe page.|