示例#1
0
        public override void call(string methodName, fMethodCallback callbackFunc, params object[] pobject)
        {
            outputBuff.Position = 0;
            AMFHeader header = new AMFHeader(AMFHeader.HEADER_12, 0x3);

            header.EndPoint  = 0;
            header.TimeStamp = 1;
            header.RTMPType  = AMFHeader.RTMP_TYPE_FUNCTION;
            header.BodySize  = 0;

            AMFString func = new AMFString(methodName);

            func.write(outputBuff);

            outputBuff.Write(c_reserved, 0, c_reserved.Length);

            new AMFNull().write(outputBuff);

            foreach (object o in pobject)
            {
                AMFDataType dObj = AMFDataType.findDataHandler(o);
                dObj.write(outputBuff);
            }
            header.BodySize = (int)outputBuff.Position;
            chunkBufferAndSend(header);
        }
示例#2
0
 public override void call(string methodName, fMethodCallback callbackFunc, params object[] methodParameters)
 {
     //throw new Exception("The method or operation is not implemented.");
 }
示例#3
0
 /// <summary>
 /// Calls a remote "actionscript" method on the server.
 /// </summary>
 /// <param name="methodName">The name of the method to call.</param>
 /// <param name="callbackFunc">The callback function to be called when this method returns.</param>
 /// <param name="methodParameters">A list of parameters to pass to the method.</param>
 abstract public void call(string methodName, fMethodCallback callbackFunc,
                           params object[] methodParameters);
示例#4
0
        public override void call(string methodName, fMethodCallback callbackFunc, params object[] pobject)
        {
            outputBuff.Position = 0;
            AMFHeader header = new AMFHeader(AMFHeader.HEADER_12, 0x3);
            header.EndPoint = 0;
            header.TimeStamp = 1;
            header.RTMPType = AMFHeader.RTMP_TYPE_FUNCTION;
            header.BodySize = 0;

            AMFString func = new AMFString(methodName);
            func.write(outputBuff);

            outputBuff.Write(c_reserved, 0, c_reserved.Length);

            new AMFNull().write(outputBuff);

            foreach (object o in pobject)
            {
               AMFDataType dObj = AMFDataType.findDataHandler(o);
               dObj.write(outputBuff);

            }
            header.BodySize = (int)outputBuff.Position;
            chunkBufferAndSend(header);
        }
示例#5
0
 /// <summary>
 /// Calls a remote "actionscript" method on the server.
 /// </summary>
 /// <param name="methodName">The name of the method to call.</param>
 /// <param name="callbackFunc">The callback function to be called when this method returns.</param>
 /// <param name="methodParameters">A list of parameters to pass to the method.</param>
 abstract public void call(string methodName, fMethodCallback callbackFunc,
     params object[] methodParameters);
示例#6
0
 public override void call(string methodName, fMethodCallback callbackFunc, params object[] methodParameters)
 {
     //throw new Exception("The method or operation is not implemented.");
 }