Add soft failing to NetworkPeer creation and INetworkDriver initialization

This commit is contained in:
Wojtek Figat
2021-10-18 11:50:03 +02:00
parent 8bdf417b17
commit 3838870b16
5 changed files with 70 additions and 31 deletions

View File

@@ -32,7 +32,8 @@ public:
/// </summary>
/// <param name="host">The peer that this driver has been assigned to.</param>
/// <param name="config">The network config to use to configure this driver.</param>
API_FUNCTION() virtual void Initialize(NetworkPeer* host, const NetworkConfig& config) = 0;
/// <returns>True if failed to initialize network driver, false otherwise.</returns>
API_FUNCTION() virtual bool Initialize(NetworkPeer* host, const NetworkConfig& config) = 0;
/// <summary>
/// Disposes this driver making it no longer usable.