Download the PHP package tourze/workerman-relay-worker without Composer
On this page you can find all versions of the php package tourze/workerman-relay-worker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package workerman-relay-worker
Workerman Relay Worker
中文
A connection relay worker for Workerman that enables traffic forwarding between different connections (TCP/UDP).
Features
- Support for TCP and UDP connection relaying
- Works with the Workerman PHP framework
- Automatic pipeline creation between source and target connections
- Connection buffering while setting up the relay
- Seamless integration with existing Workerman applications
Installation
Quick Start
Usage
The RelayWorker class extends Workerman's Worker class and provides a connection relay mechanism. You can use it to:
- Create TCP-to-TCP, TCP-to-UDP, UDP-to-TCP, or UDP-to-UDP relays
- Buffer incoming data until a target is set
- Process connections asynchronously
For each connection, you need to set a target address using RelayWorker::setTarget()
. Once set, any data received on that connection will be forwarded to the target address.
Dependencies
- PHP 8.1+
- workerman/workerman: ^5.1
- tourze/workerman-connection-pipe: 0.0.*
License
The MIT License (MIT). Please see License File for more information.
All versions of workerman-relay-worker with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
tourze/workerman-connection-pipe Version 0.0.*
workerman/workerman Version ^5.1
tourze/workerman-connection-pipe Version 0.0.*
workerman/workerman Version ^5.1
The package tourze/workerman-relay-worker contains the following files
Loading the files please wait ....