예제 #1
0
        protected override void NewHeader(object sender, TextArgs args)
        {
            if (!args.Message.Contains("HTTP/1.1 101"))
            {
                Close("NewHeader");
                return;
            }

            WebData.handshakeComplete = true;

            base.RaiseConnection();
        }
예제 #2
0
 void SslSocket_Closed(object sender, TextArgs e)
 {
     Close(e.Message, false);
 }
예제 #3
0
 public JsonArgs(TextArgs vJson, Connection vContext) : base(vContext)
 {
     Json = vJson;
 }
예제 #4
0
 void Retry_TimerEvent(object sender, TextArgs e)
 {
     TimerEvent(sender, e);
 }
예제 #5
0
 protected virtual void NewHeader(object sender, TextArgs args)
 {
 }
예제 #6
0
 private void Data_Header(object sender, TextArgs args)
 {
     this.NewHeader(sender, args);
 }
예제 #7
0
        private void Raw_Closed(object sender, TextArgs e)
        {
            CloseArgs cA = new CloseArgs(e.Message, true);

            Raise_Closed(cA);
        }