UDP resive faster than framerate

Hey there. I am new in c++ and openframeworks so pls use easy Words.
I like to resive udp independent from framerate in a funktion for example “void resived.udp ()” so i dont ask if i reseved and get a event of it because i need exact timing an the time it arived. I just found examples where i ask if there is data and dont want zo ask 1000 times a second if there is something do resive.
Laurin