Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
<?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";
Exemplo n.º 3
0
 public function read()
 {
     AirD::Log(AirD::LOGTYPE_INTERNAL, "HTTPServer's read", true);
     parent::read();
     AirD::Log(AirD::LOGTYPE_INTERNAL, "After HTTPServer's read", true);
 }