* @revision 03 * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @homepage http://oss.tiggerswelt.net/oscar/ * @copyright Copyright © 2009 tiggersWelt.net */ class Oscar_TLV_Logon_Server extends Oscar_TLV { /* Type of this TLV */ const TYPE = 0x0005; public $Hostname = ""; public $Port = 5190; // {{{ parse /** * Parse a BOS-Packet received from server * * @access public * @return void */ public function parse () { $this->Hostname = substr ($this->Data, 0, $p = strpos ($this->Data, ":")); $this->Port = intval (substr ($this->Data, $p + 1)); } // }}} // {{{ generate /** * @access public * @return string */ public function generate () { $this->Data = $this->Hostname . ":" . $this->Port; return parent::generate (); } // }}} } ?>