public function __construct($client_class, $bind_address = 0, $bind_port = 0, $domain = AF_INET, $type = SOCK_STREAM, $protocol = SOL_TCP) { parent::__construct($client_class, $bind_address, $bind_port, $domain, $type, $protocol); $this->buckets = array_fill(0, $this->buckets_size, array()); }
<?php include_once 'isoPackager.php'; include_once 'socketServer.php'; $isoMsg = new isoPack(); $isoRsp = new isoPack(); $isoProc = array(); $isoSRV = new socketServer('0.0.0.0', 18583); function getResponse($vMTI, $vIsoData) { switch ($vMTI) { case "0100": break; case "0200": break; case "0400": break; default: break; } } //Main ------------------------------------------------------------------------- do { $isoSRV->openStream(); $isoMsg->addISO($isoSRV->inputStream()); if ($isoMsg->validateISO()) { echo "<<<<<<<<<< Incoming.................................................\n"; echo $isoMsg->getISO() . "\n"; echo "+++++++++++++++++++++++++++ Parsed ISO +++++++++++++++++++++++++++++++\n"; var_dump($isoMsg->getData()); echo "\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n";
public function read() { AirD::Log(AirD::LOGTYPE_INTERNAL, "HTTPServer's read", true); parent::read(); AirD::Log(AirD::LOGTYPE_INTERNAL, "After HTTPServer's read", true); }