Questions tagged [bridging]
39 questions
1
vote
0 answers
Python Bridge with MITM function
I'm currently trying to figure out a way to bridge two physical network interfaces with the option to modify packets however I want in Ubuntu.
I want, that every packet which is redirected is checked for special content by some if's.
Since I cannot…

I. Shm
- 173
- 13
1
vote
2 answers
Access static objective C method in Swift
In my Obj-C files, I have this static member and getter :
//******* DBASplashViewController.m ********
static SWRevealViewController *staticRVC;
+ (SWRevealViewController*)currentSWRevealViewController
{
return staticRVC;
}
//*******…

Kevin ABRIOUX
- 16,507
- 12
- 93
- 99
1
vote
2 answers
Objective C interface generated header can't be imported in other header
I am not an Obj C pro, but I should write some code in Objective C and bridge a Swift code to it.
I success in importing the Generated Header to the .m file:
#import "-Swift.h"
But when I try importing the same header to the .h file it…

Etgar
- 5,774
- 2
- 16
- 30
1
vote
1 answer
How to import SKTUtils in Objective-C?
I'm trying to import SKTUtils - which is a set of swift files - into an Objective-C project. As far as I know it would be enough to do this way:
#import "ProjectName-Swift.h"
But the problem is that SKTUtils is not a project, but rather a…

Ramy Al Zuhouri
- 21,580
- 26
- 105
- 187
0
votes
1 answer
Calculate betweenness count /brokerage instead of betwenness centrality in igraph
I'm having a medium-sized igraph-object (~150 actors) and want to calculate the betweenness count for each graph. I was wondering if there is an elegant way to do so?
For instance, we can export betweenness centrality or constraint by just…

SteffenT
- 119
- 6
0
votes
0 answers
Using Callback and OnnActivityResult with ReactContextBaseJavaModule in ReactNative
I am working on ReactNative-Native bridging.
I have Module as below
public class DemoModules extends ReactContextBaseJavaModule {
private Callback mCallback;
private static ReactApplicationContext reactContext = null;
private final…

Vir Rajpurohit
- 1,869
- 1
- 10
- 23
0
votes
0 answers
chromecast integration on android native
I have a react native sdk which uses the android native exoplayer library for video playback.
I am trying to integrate the google's cast library on the native side itself.
The sample code shared by google-cast sdk works just fine on the native…
0
votes
1 answer
OPNSense in a Proxmox VM, nested in Azure VM, trying to spoof VM NIC to transparently relay to host NIC
I am trying to set up OPNSense VM inside a Proxmox, which is running in a Azure VM with nesting enabled. I have my reasons to do it, so please spare me the "why not go native" questions.
Since azure VMs don't support vIOMMU (note the "v" in vIOMMU…

dawidw
- 23
- 4
0
votes
1 answer
Mosquitto broker with SSL encryption for bridge connection
Let me first explain what I am trying to achieve first and then I'll get into the details of the things I have tried already.
So, we have a VM that is on our premise and another VM that is on a customer's premise. The access to these VMs are only…

Starlord
- 13
- 3
0
votes
2 answers
I need to use a swift class in objective-c and cannot setup my Emilos-Swift.h bridging file to resolve any swift classes in objective-c
Cannot get Xcode to generate the bridging file so it's currently empty and cannot find any guide/docs on what needs to be in the file. The empty bridging file is being imported in the .m where the class is needed. Swift file using @objcmembers on…

James Bonner
- 39
- 2
0
votes
1 answer
Self bridging Mosquitto MQTT broker
I am trying to self-bridge a mosquitto broker. Let me explain the scenario for which I am doing this.
We have 2 parts to our application. One which is concerned with processing data and other is a modbus service that reads data from PLC devices.
The…

Trijwal
- 3
- 2
0
votes
1 answer
UnsafeMutablePointer to UTF8 String
I have a UnsafeMutablePointer pointing at a C string, I want to convert the bytes at this pointer to a Swift String, the data is a C string, so UTF8.
Is it possible to iterate byte by byte until NULL? Or some easier way?

Peter Prographo
- 1,141
- 1
- 10
- 27
0
votes
1 answer
I want to pass data from native activity to react native js file using bridging in android
I want to pass data from android native activity to react native js file. I can pass data from react-native to android. But i want to pass when i click button in activity. PLease help me to resolve this issue.

v teja
- 613
- 2
- 7
- 17
0
votes
1 answer
UIColor swift extension w/ class access from Objective-C
How can I access my darkGray color from objective-c please?
@objc
extension UIColor
{
@objc
public class Scheme1: NSObject {
static var darkGray: UIColor! {
return UIColor(red: 16.0/255.0, green: 16.0/255.0, blue:…

Chris Allinson
- 1,837
- 2
- 26
- 39
0
votes
1 answer
Swift equivalent of my Objective-C block
I can't seem to figure out how to call an Objective-C block from Swift!
I have the following Objective-C method:
- (void)myMethod:(NSDictionary *)selection success:(MyBlock)success;
Where MyBlock is:
typedef void(^MyBlock)(BOOL success,…

Chris Allinson
- 1,837
- 2
- 26
- 39