Skip to content

Commit

Permalink
Merge pull request #399 from cmu-sei/v8
Browse files Browse the repository at this point in the history
V8
  • Loading branch information
sei-dupdyke authored Aug 28, 2024
2 parents b93cc29 + 339e404 commit b329754
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/core/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Unzip to your client machine in a directory such as `c:\exercise\ghosts`. You wi

## Linux Client

Your client Linux machine will need to have the latest [Microsoft dotnetcore runtime](https://dotnet.microsoft.com/download) :material-open-in-new: installed (Note that for the GHOSTS client, there are versions for dotnetcoreapp3.1 - this will eventually go away — and dotnet6.0, which is long term support (LTS) and will stick around for a while). Again, note that you only need the runtime installed, not the full SDK.
Your client Linux machine will need to have the latest [Microsoft dotnetcore runtime version 8.0](https://dotnet.microsoft.com/download) :material-open-in-new: installed. Again, note that you only need the runtime installed, not the full SDK. Our testing has been with Ubuntu 24.04 using the [snap instructions here](https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?pivots=os-linux-ubuntu-2404&tabs=dotnet8), but other distributions should work as well.

### Linux Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ public async Task Run()
_attempts++;
}

Console.WriteLine($"Connected to {url}");

// Send a message to the server
while (_connection.State == HubConnectionState.Connected)
{
Console.WriteLine($"Connected to {url}");
_ = new Timer(_ => {
Task.Run(async () => {
await ClientHeartbeat();
Expand Down
28 changes: 14 additions & 14 deletions src/ghosts.client.linux/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ private static void Run(IEnumerable<string> args)
return;
}

if (Configuration.Sockets.IsEnabled)
{
_log.Trace("Sockets enabled. Connecting...");
var c = new Connection(Configuration.Sockets);

async void Start()
{
await c.Run();
}

var connectionThread = new Thread(Start) { IsBackground = true };
connectionThread.Start();
Queue = c.Queue;
}
// if (Configuration.Sockets.IsEnabled)
// {
// _log.Trace("Sockets enabled. Connecting...");
// var c = new Connection(Configuration.Sockets);
//
// async void Start()
// {
// await c.Run();
// }
//
// var connectionThread = new Thread(Start) { IsBackground = true };
// connectionThread.Start();
// Queue = c.Queue;
// }

Program.CheckId = new CheckId();

Expand Down
2 changes: 1 addition & 1 deletion src/ghosts.client.linux/ghosts.client.linux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Version>8.0.0.0</Version>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<ReleaseVersion>8.0.0.0</ReleaseVersion>
<FileVersion>8.1.0.0</FileVersion>
<FileVersion>8.1.1.0</FileVersion>

<SynchReleaseVersion>false</SynchReleaseVersion>

Expand Down

0 comments on commit b329754

Please sign in to comment.