public function start()
	{
		for ($i = 0; $i < $this->_nProcesses; $i++) {
			$this->_nCurrentProcess = $i;
			$this->_aPids[$i] = $nPid = pcntl_fork();
			if ($nPid == -1) {
				$this->_log('WARNING: Could not fork');
			} else if ($nPid > 0) {
				// Parent process
				$this->_log("INFO: Forked process PID {$nPid}");
				$this->_nRunningProcesses++;
			} else {
				// Child process
				try {
					parent::connect();
				} catch (ApnsPHP_Exception $e) {
					$this->_log('ERROR: ' . $e->getMessage() . ', exiting...');
					exit(1);
				}
				$this->_mainLoop();
				parent::disconnect();
				exit(0);
			}
		}
	}
public function start()
	{
		for ($i = 0; $i < $this->_nProcesses; $i++) {
			$this->_nCurrentProcess = $i;
			$this->_aPids[$i] = $nPid = pcntl_fork();
			if ($nPid == -1) {
				$this->_log('WARNING: Could not fork');
			} else if ($nPid > 0) {
				// Parent process
				$this->_log("INFO: Forked process PID {$nPid}");
				$this->_nRunningProcesses++;
			} else {
				// Child process
				try {
					parent::connect();
				} catch (ApnsPHP_Exception $e) {
					$this->_log('ERROR: ' . $e->getMessage() . ', exiting...');
					exit(1);
				}
				$this->_mainLoop();
				parent::disconnect();
				exit(0);
			}
		}
	}
public function start ( ) { for ( $ i = 0 ; $ i < $ this -> _nProcesses ; $ i ++ ) { $ this -> _nCurrentProcess = $ i ; $ this -> _aPids [ $ i ] = $ nPid = pcntl_fork ( ) ; if ( $ nPid == - 1 ) { $ this -> _log ( 'WARNING: Could not fork' ) ; } else if ( $ nPid > 0 ) { // Parent process $ this -> _log ( "INFO: Forked process PID {$nPid}" ) ; $ this -> _nRunningProcesses ++ ; } else { // Child process try { parent :: connect ( ) ; } catch ( ApnsPHP_Exception $ e ) { $ this -> _log ( 'ERROR: ' . $ e -> getMessage ( ) . ', exiting...' ) ; exit ( 1 ) ; } $ this -> _mainLoop ( ) ; parent :: disconnect ( ) ; exit ( 0 ) ; } } }
Starts the server forking all processes and return immediately.

Every forked process is connected to Apple Push Notification Service on start
and enter on the main loop.
Starts the server forking all processes and return immediately .