static void CloseEvent_cb(IntPtr inst)
 {
     try {
         WebRTCDataChannel __obj = GLib.Object.GetObject(inst, false) as WebRTCDataChannel;
         __obj.OnCloseEvent();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void SendStringEvent_cb(IntPtr inst, IntPtr data)
 {
     try {
         WebRTCDataChannel __obj = GLib.Object.GetObject(inst, false) as WebRTCDataChannel;
         __obj.OnSendStringEvent(GLib.Marshaller.Utf8PtrToString(data));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Пример #3
0
 static void OnError_cb(IntPtr inst, IntPtr error)
 {
     try {
         WebRTCDataChannel __obj = GLib.Object.GetObject(inst, false) as WebRTCDataChannel;
         __obj.OnOnError(error);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void SendDataEvent_cb(IntPtr inst, IntPtr data)
 {
     try {
         WebRTCDataChannel __obj = GLib.Object.GetObject(inst, false) as WebRTCDataChannel;
         __obj.OnSendDataEvent(new GLib.Bytes(data));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Пример #5
0
 static void OnBufferedAmountLow_cb(IntPtr inst)
 {
     try {
         WebRTCDataChannel __obj = GLib.Object.GetObject(inst, false) as WebRTCDataChannel;
         __obj.OnOnBufferedAmountLow();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }