Author: Manuel Lemos
Viewers: 796
Last month viewers: 10
Categories: Notable Packages
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.
Read this article to learn more details about how this notable PHP package works.
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.
Read this article to learn more details about how this notable PHP package works.
The package PHP UDP Hole Punching is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Connect to network peers through a UDP server
Here follows in more detail what it does:
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.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.
The basic purpose is: Connect to network peers through a UDP server
Here follows in more detail what it does:
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.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.
You need to be a registered user or login to post a comment
1,616,107 PHP developers registered to the PHP Classes site.
Be One of Us!
Login Immediately with your account on:
Comments:
No comments were submitted yet.