Download

Multiple Listening sockets created on same port

Hi everyone,

Right now, I’m working to interface large amounts of data through unreal in real time. Using Rama’s codebase for that (https://wiki.unrealengine.com/TCP_Socket_Listener,Receive_Binary_Data_From_an_IP/Port_Into_UE4,%28Full_Code_Sample%29) I was successful! But only the very first instance of a scene. If I attempt to stop, then play the scene again, I end up creating another listening port and my connections “succeed” but connect to a now unneeded instance.

Below is a link to the code base, which not much was modified from Rama’s work. I was wondering if anyone had any idea how to properly close an instance’s socket.
https://pastebin.com/8iG9CVFf

Thanks!