internal void FireOnSkypeProxyAuthFailure(SktSkype sender, OnSkypeProxyAuthFailureArgs e)
 {
     if (OnSkypeProxyAuthFailure == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeProxyAuthFailureInNewThread); return; }
     gui.BeginInvoke(OnSkypeProxyAuthFailure, new object[] { sender, e }); // Synchronizing to gui thread
 }
 internal void ProcessOnSkypeProxyAuthFailure(SktSkype sender)
 {
     if (skypeRef.logging) skypeRef.Log("Processing event OnSkypeProxyAuthFailure");
     OnSkypeProxyAuthFailureArgs args = new OnSkypeProxyAuthFailureArgs();
     int marker = 0;
     int typeTag = 0;
     do
     {
     typeTag = skypeRef.transport.ReadByte();
     if (typeTag == 122) break;
     marker = skypeRef.transport.ReadByte();
     switch (marker)
     {
         case 1:
             args.type = (SktSkype.PROXYTYPE)skypeRef.decoder.DecodeUint();
             break;
         default:
             if (marker != 122) skypeRef.Error(String.Format("Invalid event argument tag {0} in OnSkypeProxyAuthFailure", marker));
             break;
     }
     } while (marker != 'z');
     skypeRef.transport.ResumeSocketReaderFromEvent();
     args.senderobj = sender;
     FireOnSkypeProxyAuthFailure(sender, args);
 }