Used with socket handling messages
예제 #1
0
        /// <summary>
        /// Set up the parameters and raise a Reply message event
        /// </summary>
        /// <param name="strMessage">Message to be raised </param>
        private void RaiseCommand(string strMessage)
        {
            HttpCommandArgs s = new HttpCommandArgs();

            s.m_Message = strMessage;
            OnCommand(s);
        }
예제 #2
0
 /// <summary>
 /// Invoke the message received event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnCommand(HttpCommandArgs e)
 {
     // check to see that there is at least one event handler listening
     if (controlMessage != null)
     {
         controlMessage(this, e);
     }
 }
예제 #3
0
파일: Form1.cs 프로젝트: happyt/webServer
        /// <summary>
        /// Event handler for returned messages
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void http_controlMessage(object sender, HttpCommandArgs e)
        {
            try
            {
                SetStatus(e.m_Message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            // Deal with the http command
            ParseCommand(e.m_Message);
        }
예제 #4
0
 /// <summary>
 /// Set up the parameters and raise a Reply message event
 /// </summary>
 /// <param name="strMessage">Message to be raised </param>
 private void RaiseCommand(string strMessage)
 {
     HttpCommandArgs s = new HttpCommandArgs();
     s.m_Message = strMessage;
     OnCommand(s);
 }
예제 #5
0
 /// <summary>
 /// Invoke the message received event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnCommand(HttpCommandArgs e)
 {
     // check to see that there is at least one event handler listening
     if (controlMessage != null) controlMessage(this, e);
 }