示例#1
0
        /// <summary>
        /// Sends the Bytes Data.
        /// </summary>
        /// <param name="packet">Packet.</param>
        /// <param name="callback">Callback.</param>
        /// <param name="headers">Headers.</param>
        /// <typeparam name="T">The 1st type parameter.</typeparam>
        public void SendBYTE <T>(HTTPPacketRequest packet, System.Action <T> callback = null, IHttpSession.PROCESS_HANDLE process = null) where T : HTTPPacketAck
        {
            T ack = null;

            if (process != null)
            {
                ack = process(packet) as T;
            }

            if (callback != null)
            {
                callback(ack);
            }
        }
示例#2
0
 /// <summary>
 /// Sends the Bytes Data.
 /// </summary>
 /// <param name="packet">Packet.</param>
 /// <param name="callback">Callback.</param>
 /// <param name="headers">Headers.</param>
 /// <typeparam name="T">The 1st type parameter.</typeparam>
 public void SendBYTE <T>(HTTPPacketRequest packet, System.Action <T> callback = null, IHttpSession.PROCESS_HANDLE process = null) where T : HTTPPacketAck
 {
     HTTPLoader.GoWWW <T>(this.m_strURL + packet.GetAction(), null, packet.ToMsgPacketByte(), this.m_cHeader, onDataError, callback);
 }
示例#3
0
 public void ReqestGET(HTTPPacketRequest packet, System.Action <string> callback = null, IHttpSession.PROCESS_HANDLE process = null)
 {
     HTTPLoader.GoWWW(this.m_strURL + packet.GetAction() + packet.ToParam(), null, null, this.m_cHeader, onDataError, callback);
 }
示例#4
0
 /// <summary>
 /// Sends the Bytes Data.
 /// </summary>
 /// <param name="packet">Packet.</param>
 /// <param name="callback">Callback.</param>
 /// <param name="headers">Headers.</param>
 /// <typeparam name="T">The 1st type parameter.</typeparam>
 public abstract void SendBYTE <T>(HTTPPacketRequest packet, System.Action <T> callback = null, PROCESS_HANDLE process = null) where T : HTTPPacketAck;
示例#5
0
 /// <summary>
 /// Sends the GET data.
 /// </summary>
 /// <param name="packet">Packet.</param>
 /// <param name="callback">Callback.</param>
 /// <typeparam name="T">The 1st type parameter.</typeparam>
 public virtual void SendGET <T>(HTTPPacketRequest packet, System.Action <T> callback = null, PROCESS_HANDLE process = null) where T : HTTPPacketAck
 {
     //
 }