Removed Fill/ReadNetworkData

These functions needed to be replaced because they rely heavily on reliability.

Instead, new functions called (Write/Read)Data(Server/Client) will be added. 

Separating client and server code into completely separate functions will help ensure that proper security checks are performed.
This commit is contained in:
juanjp600
2016-08-29 20:02:46 -03:00
parent a00ceb5b9f
commit af220dbc2a
28 changed files with 29 additions and 2297 deletions

View File

@@ -150,7 +150,7 @@ namespace Barotrauma.Networking
try
{
if (!e.FillNetworkData(eventType, message, data)) return false;
}
catch (Exception exception)
@@ -227,10 +227,7 @@ namespace Barotrauma.Networking
try
{
if (!e.ReadNetworkData(eventType, message, sendingTime, out data))
{
resend = false;
}
}
catch (Exception exception)
{