static void NextAsync_cb(IntPtr inst, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { SocketAddressEnumerator __obj = GLib.Object.GetObject(inst, false) as SocketAddressEnumerator; GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data); __obj.OnNextAsync(GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static IntPtr Next_cb(IntPtr inst, IntPtr cancellable, out IntPtr error) { error = IntPtr.Zero; try { SocketAddressEnumerator __obj = GLib.Object.GetObject(inst, false) as SocketAddressEnumerator; GLib.SocketAddress __result; __result = __obj.OnNext(GLib.Object.GetObject(cancellable) as GLib.Cancellable); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }