Integrating against a foreign network service

Let’s say that we’ve written a completely headless game and now we’re looking to create a user interface in Unreal Engine for it. The game uses its own custom protocol.

I have a few specific questions, but I think I can summarize them as: How complicated is it to use raw sockets in Unreal Engine [to make a client]? Does UE natively support raw sockets or is it assumed that one will be interfacing only with other UE instances?

Game is turn-based; so we have no timing constraints to worry about. UDP or TCP doesn’t matter.