Esempio n. 1
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();
 }
Esempio n. 2
0
 public Session(global::System.Net.IPAddress myIP, int myPort, string ToIP, string ToUser, string FromUser, global::SIPLib.DelCloseSession d1, string ID, string SDPfunc)
 {
     this.ToIP            = ToIP;
     this.ToUser          = ToUser;
     this.MyName          = FromUser;
     this.myIP            = myIP;
     this.port            = myPort;
     this.myaudioport     = 11010;
     this.SessionID       = ID;
     this.DelClosesession = d1;
     this.n++;
     if (SDPfunc.Length != 0)
     {
         this._SDP = this.SDPcombine(SDPfunc);
     }
     else
     {
         this._SDP = this.SDP();
     }
 }