I created the FSocket instance like below:
FSocket* Socket_;
Socket_ = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("TestSocket"), false);
and I tried to get the state of socket like below:
ESocketConnectionState CurrentStatus = Socket_->GetConnectionState();
It works fine at PIE. Editor. It returns ESocketConnectionState::SCS_NotConnected
but when it runs on android device, It returns ESocketConnectionState::SCS_Connected.
Does anyone have similar experience like this? I’m confusing what I did wrong with Socket initialization.
Why the result is different between Editor and Android device?