Fix bad address creation and incorrect socket protocol construction bug with the TCPSocketBuilder on iOS.

#Jira: UE-63767
#rb: joe.graf
[FYI] joe.graf, ryan.gerleve
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jake.leonard
#ROBOMERGE-SOURCE: CL 4905555 in //UE4/Release-4.22/... via CL 4905559
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5015162 by jake leonard in Dev-Anim branch]
This commit is contained in:
jake leonard
2019-02-16 00:59:33 -05:00
parent 69dc5896e2
commit a5ea31929d
@@ -215,7 +215,8 @@ public:
if (SocketSubsystem != nullptr)
{
Socket = SocketSubsystem->CreateSocket(NAME_Stream, *Description, ESocketProtocolFamily::IPv4);
TSharedRef<FInternetAddr> BoundEndpointAddr = BoundEndpoint.ToInternetAddr();
Socket = SocketSubsystem->CreateSocket(NAME_Stream, *Description);
if (Socket != nullptr)
{
@@ -225,7 +226,7 @@ public:
if (!Error)
{
Error = Bound && !Socket->Bind(*BoundEndpoint.ToInternetAddrIPV4());
Error = Bound && !Socket->Bind(*BoundEndpointAddr);
}
if (!Error)