public void SetInterceptCallback(InterceptCallback callback) { ThrowIfNotCreated(); Native.enet_host_set_intercept_callback(nativeHost, Marshal.GetFunctionPointerForDelegate(callback)); }
public void SetInterceptCallback(IntPtr callback) { ThrowIfNotCreated(); Native.enet_host_set_intercept_callback(nativeHost, callback); }