Hello, I got something very strange, and have no idea what happened.
step:
- I build a windows c++ exe. which only send a 32byte udp buff to UE program every second (on the same PC).
- At UE side, I build a c++ plugin, and build a c++ ActorComponent.
- the ActorComponent has 2 udp socket, one bind FUdpSocketReceiver, receive from outside exe; the other send udp buff to the outside exe.( In order to make things clear, the out side c++ program not call recvfrom function.)
- From UE plugin, I have 2 place send out buff. one is TickComponent function, the other is call from Bp( from player controller).
- If only one place send out upd buff, FUdpSocketReceiver worked well. But, if two place tick send out buff, some times(1/2 ~1/5 rate) ,the Receive function will get FArrayReaderPtr with Num() 0.
did I miss something? please help.