Pass virtual port to ISteamNetworkingCustomSignalingRecvContext

This commit is contained in:
Fletcher Dunn
2020-07-07 18:25:37 -07:00
parent 64f1cd0963
commit fe8cbb084e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -733,7 +733,7 @@ public:
///
/// After accepting a connection (through either means), the connection
/// will transition into the "finding route" state.
virtual ISteamNetworkingConnectionCustomSignaling *OnConnectRequest( HSteamNetConnection hConn, const SteamNetworkingIdentity &identityPeer ) = 0;
virtual ISteamNetworkingConnectionCustomSignaling *OnConnectRequest( HSteamNetConnection hConn, const SteamNetworkingIdentity &identityPeer, int nLocalVirtualPort ) = 0;
/// This is called actively communication rejection or failure
/// to the incoming message. If you intend to ignore all incoming requests
@@ -2461,7 +2461,7 @@ bool CSteamNetworkingSockets::InternalReceivedP2PSignal( const void *pMsg, int c
}
// Inform app about the incoming request, see what they want to do
pConn->m_pSignaling = pContext->OnConnectRequest( pConn->m_hConnectionSelf, identityRemote );
pConn->m_pSignaling = pContext->OnConnectRequest( pConn->m_hConnectionSelf, identityRemote, nLocalVirtualPort );
// Already closed?
switch ( pConn->GetState() )