Example #1
0
                        Debug('[Debugger]: слишком много подключений');
                    }
                }
            }
        }
        #---------------------------------------------------------------------------
        for ($ClientID = 0; $ClientID < Count($Clients); $ClientID++) {
            #-------------------------------------------------------------------------
            $Client =& $Clients[$ClientID];
            #-------------------------------------------------------------------------
            if (!Is_Resource($Client->Stream)) {
                continue;
            }
            #-------------------------------------------------------------------------
            if (In_Array($Client->Stream, $Read)) {
                #-----------------------------------------------------------------------
                $Input = @Socket_Read($Client->Stream, 64);
                #-----------------------------------------------------------------------
                if (!$Input) {
                    #---------------------------------------------------------------------
                    $Client->Disconnect();
                    #---------------------------------------------------------------------
                    Debug('[Debugger]: соединение закрыто');
                } else {
                    echo $Input;
                }
            }
        }
    }
}
#-------------------------------------------------------------------------------