I am using 4.2. Also on a new Basic Code project I am still getting a lot of errors, with the above code and the suggested includes (see below). I was hoping it was only an issue with Intellisense but it seems that is not the case. I could go into the MyProject3->Settings->NMake and add each and every library path to the Include Search Path list, but I’m not sure this will do anything except make intellisense less angry.
Errors on compile for new Basic Code project with socket code:
I will also state that without the posted code added to it, it does compile. Also it will compile with an include to “SocketSubsystem.h” but will display an intellisense error stating that it could not open the source file SocketSubsystem.h.
P.S. I did add Sockets and Networking to the dependancies in MyProject3.Build.cs before trying to compile*
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Networking", "Sockets" });