public MainWindow() : base()
 {
     this.InitializeComponent();
     this.DelOutput       += funcOutput;
     this.DelRequest1     += ReceivedInvite;
     this.DelStoplistener += DelStoplistener;
 }
Beispiel #2
0
 public Listener(int newport, global::SIPLib.DelRequest d1, string name, global::SIPLib.DelCloseSession d2, global::SIPLib.Del OUT, global::SIPLib.DelStopListener DelSL)
 {
     global::SIPLib.Listener.DelRequest1      = d1;
     global::SIPLib.Listener.DelClosesession  = d2;
     global::SIPLib.Listener.DelOutput        = OUT;
     global::SIPLib.Listener.DelClosesession += CloseSession;
     global::SIPLib.Listener.Delstoplistener  = DelSL;
     global::SIPLib.Listener.StopFlag         = false;
     global::SIPLib.Listener.myName           = name;
     this.myIP = global::System.Net.Dns.GetHostEntry(host).AddressList[0];
     global::SIPLib.Listener.port = newport;
     this.ThreadListen            = new global::System.Threading.Thread(global::SIPLib.Listener.ListenSockets);
     this.ThreadListen.Start();
 }