public SessionAnnouncement(SessionDescription sessionDescription, NetworkInterface inter) { if (sessionDescription.Announcement != null) { throw new ArgumentException("sessionDescription"); } SessionDescription = sessionDescription; SessionDescription.Announcement = this; NetworkInterface = inter; }
public SdpSession(SessionDescription sd, NetworkInterface inter) { SessionDescription = sd; NetworkInterface = inter; }
public SdpSession(Origin o, NetworkInterface inter) { SessionDescription = new SessionDescription(); SessionDescription.Origin = o; NetworkInterface = inter; }
private static int GetInterfaceIndex(NetworkInterface interf) { if (interf == null) { return 0; } else { return interf.Index; } }