public Gst.Rtsp.RTSPResult DoTunnel(Gst.Rtsp.RTSPConnection conn2) { int raw_ret = gst_rtsp_connection_do_tunnel(Handle, conn2 == null ? IntPtr.Zero : conn2.Handle); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; return(ret); }
public static Gst.Rtsp.RTSPResult RtspConnectionAccept(GLib.Socket socket, out Gst.Rtsp.RTSPConnection conn, GLib.Cancellable cancellable) { IntPtr native_conn; int raw_ret = gst_rtsp_connection_accept(socket == null ? IntPtr.Zero : socket.Handle, out native_conn, cancellable == null ? IntPtr.Zero : cancellable.Handle); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; conn = native_conn == IntPtr.Zero ? null : (Gst.Rtsp.RTSPConnection)GLib.Opaque.GetOpaque(native_conn, typeof(Gst.Rtsp.RTSPConnection), true); return(ret); }
public static Gst.Rtsp.RTSPResult RtspConnectionCreate(Gst.Rtsp.RTSPUrl url, out Gst.Rtsp.RTSPConnection conn) { IntPtr native_url = GLib.Marshaller.StructureToPtrAlloc(url); IntPtr native_conn; int raw_ret = gst_rtsp_connection_create(native_url, out native_conn); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; Marshal.FreeHGlobal(native_url); conn = native_conn == IntPtr.Zero ? null : (Gst.Rtsp.RTSPConnection)GLib.Opaque.GetOpaque(native_conn, typeof(Gst.Rtsp.RTSPConnection), true); return(ret); }
public static Gst.Rtsp.RTSPResult RtspConnectionCreateFromSocket(GLib.Socket socket, string ip, ushort port, string initial_buffer, out Gst.Rtsp.RTSPConnection conn) { IntPtr native_ip = GLib.Marshaller.StringToPtrGStrdup(ip); IntPtr native_initial_buffer = GLib.Marshaller.StringToPtrGStrdup(initial_buffer); IntPtr native_conn; int raw_ret = gst_rtsp_connection_create_from_socket(socket == null ? IntPtr.Zero : socket.Handle, native_ip, port, native_initial_buffer, out native_conn); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; GLib.Marshaller.Free(native_ip); GLib.Marshaller.Free(native_initial_buffer); conn = native_conn == IntPtr.Zero ? null : (Gst.Rtsp.RTSPConnection)GLib.Opaque.GetOpaque(native_conn, typeof(Gst.Rtsp.RTSPConnection), true); return(ret); }
public static Gst.Rtsp.RTSPResult RtspConnectionAccept(GLib.Socket socket, out Gst.Rtsp.RTSPConnection conn) { return(RtspConnectionAccept(socket, out conn, null)); }