Commit Graph

2 Commits

Author SHA1 Message Date
Wojciech Krywult
da81b70c8c CookOnTheFly (platform protoco): Added an additional check to ITargetDeviceSocket::IsConnected in the cooking server. It's needed because on some platforms ITargetDevice::IsProtocolAvailable doesn't have the necessary knowledge and unconditionally returns 'true' (we only know if the protocol is available after creating a socket).
#jira UE-132038
#rb jeff.newquist
#rnx
#preflight 622a5146773679d25d300d44

[CL 19480805 by Wojciech Krywult in ue5-main branch]
2022-03-23 12:37:58 -04:00
Wojciech Krywult
7b5537cc26 CookOnTheFly (platform protocol): Editor: Added support of the platform-specific transport communication protocols to the editor and use it in the cooking server.
This change allows the cooking server to communicate with clients using platform-specific communication protocols instead of TCP (the default).

This new mode is activated by adding '-platformprotocol' command-line parameter when starting the cooking server (in addition to the usual '-cookonthefly').

The new functionality is included in FNetworkFileServerPlatformProtocol, which is a variant of the preexisting FNetworkFileServer but using ITargetDevice/ITargetDeviceSocket interfaces instead of traditional sockets.

Direct communication with targets is only supported on some platforms, which can be checked by calling ITargetPlatform::SupportsFeature(ETargetPlatformFeatures::DirectDataExchange).

#rb jeff.newquist
#preflight 62166a4237178b0175af6269

[CL 19094838 by Wojciech Krywult in ue5-main branch]
2022-02-23 12:54:09 -05:00