Beispiel #1
0
 protected virtual void OnError(ClientSocketErrorEventArgs e)
 {
     if (this.Error != null)
     {
         this.Error(this, e);
     }
 }
Beispiel #2
0
    protected void OnError(Exception ex)
    {
        int errors = 0;

        lock (this._errors_lock) {
            errors = ++this._errors;
        }
        ClientSocketErrorEventArgs e = new ClientSocketErrorEventArgs(ex, errors);

        this.OnError(e);
    }
 private void Socket_OnError(object sender, ClientSocketErrorEventArgs e)
 {
     //Lib.Msgbox(e.Exception.Message + "\r\n\r\n" + e.Exception.StackTrace, MessageBoxIcon.Error);
     Lib.Msgbox(e.Exception.Message, MessageBoxIcon.Error);
 }
 private void Socket_OnError(object sender, ClientSocketErrorEventArgs e)
 {
     Console.WriteLine("[" + DateTime.Now.ToString("MM-dd HH:mm:ss") + "] " + e.Exception.Message);
 }