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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user