Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenzeve/simpletcp
Simple TCP server for PocketMine-MP (PMMP). Simple as never before.
https://github.com/kenzeve/simpletcp
pmmp pmmp-plugin pmmp-virion pmmp4 pocketmine-mp pocketmine-mp-plugin
Last synced: 3 months ago
JSON representation
Simple TCP server for PocketMine-MP (PMMP). Simple as never before.
- Host: GitHub
- URL: https://github.com/kenzeve/simpletcp
- Owner: kenzeve
- License: mit
- Created: 2023-01-25T10:29:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T01:03:14.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T10:21:39.226Z (3 months ago)
- Topics: pmmp, pmmp-plugin, pmmp-virion, pmmp4, pocketmine-mp, pocketmine-mp-plugin
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleTCP
## Usage
Very simple usage:
```php
$server = SimpleTCP::start("0.0.0.0", 2000, CustomSession::class);
````CustomSession.php`:
```php
class CustomSession extends Session{public function handlePacket(string $packet) : void{
//packet handling stuff here
//now I just send back packet I got from client
$this->write($packet);
}
}
```