예제 #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);
 }
 /// <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;
 /// <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
 {
     //
 }