Пример #1
0
        public ByteArray(System.IO.MemoryStream ms)
        {
            this._memoryStream = ms;
            AMFReader amfReader = new AMFReader(this._memoryStream);
            AMFWriter amfWriter = new AMFWriter(this._memoryStream);

            this._dataOutput     = new DataOutput(amfWriter);
            this._dataInput      = new DataInput(amfReader);
            this._objectEncoding = FluorineFx.ObjectEncoding.AMF3;
        }
Пример #2
0
 internal BaseConnection(string path, string connectionId, IDictionary parameters)
 {
     this._syncLock       = new object();
     this._basicScopes    = new CopyOnWriteArraySet <IBasicScope>();
     this._connectionId   = connectionId;
     this._objectEncoding = FluorineFx.ObjectEncoding.AMF0;
     this._path           = path;
     this._parameters     = parameters;
     this.SetIsClosed(false);
 }
Пример #3
0
        internal ByteArray(byte[] buffer)
        {
            this._memoryStream = new System.IO.MemoryStream();
            this._memoryStream.Write(buffer, 0, buffer.Length);
            this._memoryStream.Position = 0L;
            AMFReader amfReader = new AMFReader(this._memoryStream);
            AMFWriter amfWriter = new AMFWriter(this._memoryStream);

            this._dataOutput     = new DataOutput(amfWriter);
            this._dataInput      = new DataInput(amfReader);
            this._objectEncoding = FluorineFx.ObjectEncoding.AMF3;
        }
Пример #4
0
        private RemoteSharedObject(string name, string remotePath, object persistence, bool secure)
        {
            this._name          = string.Empty;
            this._path          = string.Empty;
            this._persistentSO  = false;
            this._version       = 1;
            this._updateCounter = 0;
            this._modified      = false;
            this._lastModified  = -1L;
            this._source        = null;
            this._name          = name;
            this._path          = remotePath;
            bool flag = false;

            this._persistentSO        = !flag.Equals(persistence);
            this._secure              = secure;
            this._objectEncoding      = FluorineFx.ObjectEncoding.AMF0;
            this._initialSyncReceived = false;
            this._ownerMessage        = new SharedObjectMessage(null, null, -1, false);
        }
Пример #5
0
 public DataInput(AMFReader amfReader)
 {
     this._amfReader      = amfReader;
     this._objectEncoding = FluorineFx.ObjectEncoding.AMF3;
 }
Пример #6
0
 internal RtmpContext(RtmpMode mode)
 {
     this._mode           = mode;
     this._objectEncoding = FluorineFx.ObjectEncoding.AMF0;
 }
Пример #7
0
 public DataOutput(AMFWriter amfWriter)
 {
     this._amfWriter      = amfWriter;
     this._objectEncoding = FluorineFx.ObjectEncoding.AMF3;
 }