src/Connection.php
public function allocateChannel(\fpoirotte\Pssht\Messages\CHANNEL\OPEN $message)
    {
        for ($i = 0; isset($this->channels[$i]); ++$i) {
            // Do nothing.
        }
        $this->channels[$i] = $message->getChannel();
        $this->handlers[$i] = array();
        return $i;
    }
public function allocateChannel(\fpoirotte\Pssht\Messages\CHANNEL\OPEN $message)
    {
        for ($i = 0; isset($this->channels[$i]); ++$i) {
            // Do nothing.
        }
        $this->channels[$i] = $message->getChannel();
        $this->handlers[$i] = array();
        return $i;
    }
public function allocateChannel ( \ fpoirotte \ Pssht \ Messages \ CHANNEL \ OPEN $ message ) { for ( $ i = 0 ; isset ( $ this -> channels [ $ i ] ) ; ++ $ i ) { // Do nothing. } $ this -> channels [ $ i ] = $ message -> getChannel ( ) ; $ this -> handlers [ $ i ] = array ( ) ; return $ i ; }
Allocate a new communication channel.

\param fpoirotte::Pssht::Messages::CHANNEL::OPEN $message
Original message requesting channel allocation.

\return int
Newly allocated channel's identifier.
Allocate a new communication channel .