Add method to send a messgae without copying payload.

Fixes #51
This commit is contained in:
Fletcher Dunn
2019-09-23 14:13:08 -07:00
parent 83be3ba0af
commit aa50330f1f
13 changed files with 229 additions and 32 deletions
+2 -2
View File
@@ -283,7 +283,7 @@ private:
void SendStringToClient( HSteamNetConnection conn, const char *str )
{
m_pInterface->SendMessageToConnection( conn, str, (uint32)strlen(str), k_nSteamNetworkingSend_Reliable );
m_pInterface->SendMessageToConnection( conn, str, (uint32)strlen(str), k_nSteamNetworkingSend_Reliable, nullptr );
}
void SendStringToAllClients( const char *str, HSteamNetConnection except = k_HSteamNetConnection_Invalid )
@@ -596,7 +596,7 @@ private:
}
// Anything else, just send it to the server and let them parse it
m_pInterface->SendMessageToConnection( m_hConnection, cmd.c_str(), (uint32)cmd.length(), k_nSteamNetworkingSend_Reliable );
m_pInterface->SendMessageToConnection( m_hConnection, cmd.c_str(), (uint32)cmd.length(), k_nSteamNetworkingSend_Reliable, nullptr );
}
}