PHP Classes

File: src/bin/server.php

Recommend this page to a friend!
  Classes of LAGGOUNE Walid   GeoPulse   src/bin/server.php   Download  
File: src/bin/server.php
Role: Example script
Content type: text/plain
Description: Example script
Class: GeoPulse
Server application to track devices' location
Author: By
Last change: Imporved performance, added connections pool
Date: 3 months ago
Size: 258 bytes
 

Contents

Class file image Download
<?php

require 'bin/bootstrap.php';

$server = new Swoole\Server(
   
'0.0.0.0',
   
$config['port'],
   
SWOOLE_PROCESS,
   
SWOOLE_SOCK_UDP
);
$server->set($config['swoole']);
$server->on('Packet', [$swooleUdpEventsHandler, 'onPacket']);
$server->start();