aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/State.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-14 21:09:45 -0600
committerGitHub <noreply@github.com>2022-11-14 21:09:45 -0600
commit3d0af40b9e85ee4dc07665ffdf16449a873a0640 (patch)
tree2761ad1c85408c1524be6d4dd6e0e4ee45b77ec7 /src/slskd/Core/State.cs
parent5f2923973dc2fa5b65a602c3f30cf7c5448eda0a (diff)
parent75e7d6accd92a07ae13c7eff16893cf577af255b (diff)
downloadslskd-3d0af40b9e85ee4dc07665ffdf16449a873a0640.tar.gz
Merge pull request #753 from slskd/relay
Rename 'Network' functionality to 'Relay'
Diffstat (limited to 'src/slskd/Core/State.cs')
-rw-r--r--src/slskd/Core/State.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs
index df670893..76253501 100644
--- a/src/slskd/Core/State.cs
+++ b/src/slskd/Core/State.cs
@@ -22,7 +22,7 @@ namespace slskd
using System.Linq;
using System.Net;
using System.Text.Json.Serialization;
- using slskd.Network;
+ using slskd.Relay;
using slskd.Users;
using Soulseek;
@@ -35,7 +35,7 @@ namespace slskd
public bool PendingReconnect { get; init; }
public bool PendingRestart { get; init; }
public ServerState Server { get; init; } = new ServerState();
- public NetworkState Network { get; init; } = new NetworkState();
+ public RelayState Relay { get; init; } = new RelayState();
public UserState User { get; init; } = new UserState();
public DistributedNetworkState DistributedNetwork { get; init; } = new DistributedNetworkState();
public ShareState Shares { get; init; } = new ShareState();
@@ -65,17 +65,17 @@ namespace slskd
public bool IsTransitioning => State.HasFlag(SoulseekClientStates.Connecting) || State.HasFlag(SoulseekClientStates.Disconnecting) || State.HasFlag(SoulseekClientStates.LoggingIn);
}
- public record NetworkState
+ public record RelayState
{
public OperationMode Mode { get; init; }
- public NetworkControllerState Controller { get; init; } = new NetworkControllerState();
+ public RelayControllerState Controller { get; init; } = new RelayControllerState();
public IReadOnlyCollection<Agent> Agents { get; init; } = Enumerable.Empty<Agent>().ToList().AsReadOnly();
}
- public record NetworkControllerState
+ public record RelayControllerState
{
public string Address { get; init; }
- public NetworkClientState State { get; init; } = NetworkClientState.Disconnected;
+ public RelayClientState State { get; init; } = RelayClientState.Disconnected;
}
public record UserState