You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Seemingly randomly receives the wrong value
Calling Code
// Is not consistent, but it seems to happen about 1 in 20 times.
void BUG() {
server = SteamNetworkingSockets.CreateRelaySocket<SocketManager>(0);
manager = SteamNetworkingSockets.ConnectRelay<ConnectionManager>(SteamClient.SteamId, 0);
server.onConnecting += OnServerConnectionAttempt;
server.onMessage += OnMessage;
var data = MemoryMarshal.AsBytes<int>(new int[1] {42});
manager.Connection.SendMessage(data);
}
void OnMessage(ReadOnlySpan<byte> data, Connection connection, NetIdentity identity, long messageNum, long recvTime, int channel){
int value = MemoryMarshal.Read<int>(data);
UnityEngine.Debug.Log($"Received message: Message data size: {data.Length}, {value}");
}
The text was updated successfully, but these errors were encountered:
Describe the bug
Seemingly randomly receives the wrong value
Calling Code
The text was updated successfully, but these errors were encountered: