@@ -221,7 +221,7 @@ private bool StopConnection(int connectionId, HSteamNetConnection socket)
221
221
_steamIds . Remove ( connectionId ) ;
222
222
if ( base . Transport . NetworkManager . CanLog ( LoggingType . Common ) )
223
223
Debug . Log ( $ "Client with ConnectionID { connectionId } disconnected.") ;
224
- base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Stopped , connectionId ) ) ;
224
+ base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Stopped , connectionId , Transport . Index ) ) ;
225
225
_cachedConnectionIds . Enqueue ( connectionId ) ;
226
226
227
227
return true ;
@@ -272,7 +272,7 @@ private void OnRemoteConnectionState(SteamNetConnectionStatusChangedCallback_t a
272
272
273
273
if ( base . Transport . NetworkManager . CanLog ( LoggingType . Common ) )
274
274
Debug . Log ( $ "Client with SteamID { clientSteamID } connected. Assigning connection id { connectionId } ") ;
275
- base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Started , connectionId ) ) ;
275
+ base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Started , connectionId , Transport . Index ) ) ;
276
276
}
277
277
else if ( args . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ClosedByPeer || args . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ProblemDetectedLocally )
278
278
{
@@ -321,7 +321,7 @@ internal void IterateIncoming()
321
321
while ( _clientHostIncoming . TryDequeue ( out LocalPacket packet ) )
322
322
{
323
323
ArraySegment < byte > segment = new ArraySegment < byte > ( packet . Data , 0 , packet . Length ) ;
324
- base . Transport . HandleServerReceivedDataArgs ( new ServerReceivedDataArgs ( segment , ( Channel ) packet . Channel , FishySteamworks . CLIENT_HOST_ID ) ) ;
324
+ base . Transport . HandleServerReceivedDataArgs ( new ServerReceivedDataArgs ( segment , ( Channel ) packet . Channel , FishySteamworks . CLIENT_HOST_ID , Transport . Index ) ) ;
325
325
}
326
326
327
327
foreach ( KeyValuePair < HSteamNetConnection , int > item in _steamConnections . First )
@@ -340,7 +340,7 @@ internal void IterateIncoming()
340
340
for ( int i = 0 ; i < messageCount ; i ++ )
341
341
{
342
342
base . GetMessage ( base . MessagePointers [ i ] , InboundBuffer , out ArraySegment < byte > segment , out byte channel ) ;
343
- base . Transport . HandleServerReceivedDataArgs ( new ServerReceivedDataArgs ( segment , ( Channel ) channel , connectionId ) ) ;
343
+ base . Transport . HandleServerReceivedDataArgs ( new ServerReceivedDataArgs ( segment , ( Channel ) channel , connectionId , Transport . Index ) ) ;
344
344
}
345
345
}
346
346
}
@@ -445,11 +445,11 @@ internal void OnClientHostState(bool started)
445
445
if ( ! started )
446
446
{
447
447
while ( _clientHostIncoming . TryDequeue ( out _ ) ) ;
448
- base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Stopped , FishySteamworks . CLIENT_HOST_ID ) ) ;
448
+ base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Stopped , FishySteamworks . CLIENT_HOST_ID , Transport . Index ) ) ;
449
449
}
450
450
else
451
451
{
452
- base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Started , FishySteamworks . CLIENT_HOST_ID ) ) ;
452
+ base . Transport . HandleRemoteConnectionState ( new RemoteConnectionStateArgs ( RemoteConnectionStates . Started , FishySteamworks . CLIENT_HOST_ID , Transport . Index ) ) ;
453
453
}
454
454
455
455
0 commit comments