While trying to install the client with C++ in Unreal Engine 5, FSocket cannot be found during the compile process and I get an error like the one below. As you can see in the image, it appears as defined on FSocket Ide. How can i solve this problem. Thanks in advance for the answers.
Compiler Error:
I’m asking because I’m new to Unreal Engine and c++. How can i declare FSocket using USTRUCT macro? I know a little about the USTRUCT macro, but I don’t know how to use it with FSocket. At the same time, I don’t understand why we can’t use FSocket directly.
You can. You just can’t make use of it in conjunction with the UPROPERTY or UFUNCTION macros.
You can have class members or methods that use FSocket, you just can’t do anything that requires reflection information like working with them through blueprint. There might be a blueprint version of the networking support around somewhere (not something I work with), but if you want to use FSocket you’ll have to write pure C++.