Why is my supposedly working c++ script not receiving UDP packets once put in GDNative ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Superyen

Hi everyone :slight_smile:

OK so here is the thing :
I’m using a (functionnal) library that implements the OpenSoundControl API.
The purpose of this API is to send UDP packets over network that contains samples, or more generaly, sound related informations in real-time.

I made my own script in C++ that uses the library implementation of OSC.
I tested it outside of Godot and it works.
It is the same code minus the GDNative stuff.

But once i put it in Godot (with GDNative stuff), it doesn’t receive the packets anymore.
It loads well, no crash, ports are well connected (i check the returns of connect and send methods).

The reception method is not even in a Godot class yet is not called.

Where this issue could possibly come from ??

SPOILERS : It’s not my firewall

Thanks for the help :slight_smile:
Adrien