Skip to content

Simple TCP server for PocketMine-MP (PMMP). Simple as never before.

License

Notifications You must be signed in to change notification settings

kenzeve/SimpleTCP

Repository files navigation

SimpleTCP

Usage

Very simple usage:

$server = SimpleTCP::start("0.0.0.0", 2000, CustomSession::class);

CustomSession.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);
	}
}

About

Simple TCP server for PocketMine-MP (PMMP). Simple as never before.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages