TCP/UDP problem with ISocketSubsystem
Hello guys, I am playing around with the UDP/TCP Sockets of Unreal Engine 4 and got some problems while using the namespaces and functions like the documentation told me how to implement these.
Quiet simple here is just my test Header file: #include "Kismet/BlueprintFunctionLibrary.h" #include "Runtime/Sockets/Public/Sockets.h" #include "Runtime/Networking/Public/Interfaces/IPv4/IPv4Address.h" #include "Runtime/Core/Public/Templates/SharedPointer.h" #include "Runtime/Sockets/Public/SocketSubsystem.h" #include "Runtime/Networking/Public/Networking.h" #include "Runtime/Sockets/Private/BSDSockets/SocketsBSD.h" //#include "Runtime/Sockets/Private/BSDSockets/SocketSubsystemBSD.h" #include "TCPConnection.generated.h"
And my CPP class:
So some functions inside the documentation are a bit outdated and not reliable or replicatable for me. For example I used the "Fsocket" before and noticed that it is not supported from Windows anymore so I have to use FSocketBSD instead.
I am also not able to use the ISocketSubsystem like all the old tutorials or codes found on the forums or answerhub.
VS is underlining "ISocketSubsystem" inside these following lines:
I also noticed that there is an undocumented Class called "FSocketSubsystemBSD" which could fix this maybe but I generally don't have a plan how to use this class. Maybe you'll have some ideas for me :)
Greetings and ty guys
asked Feb 26 '15 at 09:43 PM in C++ Programming
I didn't have a problem using FSocket on windows in 4.7.1
.h - I only included these 3
.cpp - my connect function. My implimentation is still very much a prototype, hence the UE_LOG and placeholder SOCKETNAME
Follow this question
Once you sign in you will be able to subscribe for any updates here