Files
Testing/vidchat/m/SabreAMF/AMF3/AbstractMessage.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

76 lines
1.5 KiB
PHP

<?php
/**
* SabreAMF_AMF3_AbstractMessage
*
* @package
* @version $Id: AbstractMessage.php 233 2009-06-27 23:10:34Z evertpot $
* @copyright Copyright (C) 2006-2009 Rooftop Solutions. All rights reserved.
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @licence http://www.freebsd.org/copyright/license.html BSD License (4 Clause)
*/
abstract class SabreAMF_AMF3_AbstractMessage {
/**
* The body of the message
*
* @var mixed
*/
public $body;
/**
* Unique client ID
*
* @var string
*/
public $clientId;
/**
* destination
*
* @var string
*/
public $destination;
/**
* Message headers
*
* @var array
*/
public $headers;
/**
* Unique message ID
*
* @var string
*/
public $messageId;
/**
* timeToLive
*
* @var int
*/
public $timeToLive;
/**
* timestamp
*
* @var int
*/
public $timestamp;
public function generateRandomId() {
$SabreAMFID = '44445501';
$id = md5(microtime());
return $SabreAMFID . '-' . substr($id,0,4) . '-' . substr($id,4,4) . '-' . substr($id,8,12);
}
}