Try adding:
#include "Networking.h"
#include "Sockets.h"
#include "SocketSubsystem.h"
and see if that helps =)
Try adding:
#include "Networking.h"
#include "Sockets.h"
#include "SocketSubsystem.h"
and see if that helps =)
I appear to be having issues with including Networking.h.
I created a new blueprint project, added a blank class and have the following;
SideScrollMmo.Build.cs
using UnrealBuildTool;
public class SideScrollMmo : ModuleRules
{
public SideScrollMmo(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Sockets", "Networking"});
PrivateDependencyModuleNames.AddRange(new string[] { });
}
}
But getting the following error in my TcpLib.h file
I know this post is a few months old, but just in case anyone else runs into the same problem…
You can solve this by specifying the route where Networking.h is.
Change the include for:
#include "Runtime/Networking/Public/Networking.h"
Thats what I figured out for my self so far. But then it complains it can’t find the refs included in the Networking.h what would go down to replacing recursively any include by its path-prefix. That can’t really be intended and should be fixable in an configurable way.
After adding it to the PublicDependencyModuleNames you have to save the project, exit Visual Studio and then right click your .uproject file and hit “Generate Visual Studio project files”.
Then it should work.