Category : smpp

<?php define(‘DEBUGLOG’, file_get_contents(‘debuglog.ini’) ? true : false); include_once ‘vendor/autoload.php’; include_once ‘accounts.php’; shuffle($accounts); $aCnt = count($accounts); $aI = 0; $loop = ReactEventLoopFactory::create(); $connector = new ReactSocketConnector($loop); foreach($rows as $row) { $account = $accounts[$aI]; // this smpp account $aI ++; if($aI >= $aCnt) $aI = 0; $connector->connect($account[0])->then(function (ReactSocketConnectionInterface $connection) use ($db, $row, $account) { $seq = 0; ..

Read more