Skip to content

Commit

Permalink
Shift class access
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth committed Aug 6, 2024
1 parent 5c0ce43 commit b01ec03
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Robust.Shared/Network/NetManager.ClientConnect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Robust.Shared.Network
{
public partial class NetManager
partial class NetManager
{
private CancellationTokenSource? _cancelConnectTokenSource;
private ClientConnectionState _clientConnectState;
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Network/NetManager.NetChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Robust.Shared.Network
{
public partial class NetManager
partial class NetManager
{
private sealed class NetChannel : INetChannel
{
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Network/NetManager.Send.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Robust.Shared.Network;

public sealed partial class NetManager
sealed partial class NetManager
{
// Encryption is relatively expensive, so we want to not do it on the main thread.
// We can't *just* thread pool everything though, because most messages still require strict ordering guarantees.
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Network/NetManager.Upnp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Robust.Shared.Network;

public partial class NetManager
partial class NetManager
{
private void InitUpnp()
{
Expand Down
4 changes: 2 additions & 2 deletions Robust.Shared/Network/NetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace Robust.Shared.Network
/// <summary>
/// Manages all network connections and packet IO.
/// </summary>
public sealed partial class NetManager : IClientNetManager, IServerNetManager, IPostInjectInit
internal sealed partial class NetManager : IClientNetManager, IServerNetManager, IPostInjectInit
{
internal const int SharedKeyLength = CryptoAeadXChaCha20Poly1305Ietf.KeyBytes; // 32 bytes

Expand Down Expand Up @@ -948,7 +948,7 @@ private bool DispatchNetMessage(NetIncomingMessage msg)
_logger.Error($"{msg.SenderConnection.RemoteEndPoint}: Wrong deserialization of {type.Name} packet:\n{ice}");
return true;
}
catch (Exception e) // yes, we want to catch ALL exeptions for security
catch (Exception e) // yes, we want to catch ALL exceptions for security
{
_logger.Error($"{msg.SenderConnection.RemoteEndPoint}: Failed to deserialize {type.Name} packet:\n{e}");
return true;
Expand Down

0 comments on commit b01ec03

Please sign in to comment.