aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands/tcpip.cs
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-11-23 11:20:53 -0600
committerFloppyDiskDrive <[email protected]>2017-11-23 11:20:53 -0600
commit8fff93eb7da1b01d101e146ca7fe5d90ca01fcde (patch)
treeebb8eafff81f5e54925ec27f1a19b5066f83a418 /ShiftOS.Main/Terminal/Commands/tcpip.cs
parent1febbbd405e6f67401313defb76cc5a41b44c912 (diff)
downloadshiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.tar.gz
shiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.tar.bz2
shiftos-rewind-8fff93eb7da1b01d101e146ca7fe5d90ca01fcde.zip
extremely rough savesystem
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands/tcpip.cs')
-rw-r--r--ShiftOS.Main/Terminal/Commands/tcpip.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/ShiftOS.Main/Terminal/Commands/tcpip.cs b/ShiftOS.Main/Terminal/Commands/tcpip.cs
index 5e0e232..815c010 100644
--- a/ShiftOS.Main/Terminal/Commands/tcpip.cs
+++ b/ShiftOS.Main/Terminal/Commands/tcpip.cs
@@ -10,8 +10,8 @@ namespace ShiftOS.Main.Terminal.Commands
public class tcpip : TerminalCommand
{
public override string Name { get; } = "tcpip";
- public override string Summary { get; } = "Shows a list of incoming or outgoing commands.";
- public override string Usage { get; } = "tcpip <incoming/outcoming>";
+ public override string Summary { get; } = "Shows a list of incoming or outgoing connections.";
+ public override string Usage { get; } = "tcpip <incoming/outgoing>";
public override bool Unlocked { get; set; } = false;
public override void Run(params string[] args)
@@ -29,10 +29,16 @@ namespace ShiftOS.Main.Terminal.Commands
WriteLine("tcpip: syntax error");
break;
case "incoming":
- WriteLine($"Incoming connections from localhost:");
+ WriteLine("Incoming connections from localhost:");
WriteLine($"IP ADDRESS v4 COMPUTER NAME");
WriteLine($"{r.Next(0, 255)}.{r.Next(0, 255)}.{r.Next(0, 255)}.{r.Next(255)} {gen}");
break;
+ case "outgoing":
+ WriteLine("Outgoing connections from localhost:");
+ WriteLine($"IP ADDRESS v4 COMPUTER NAME");
+ WriteLine($"{r.Next(0, 255)}.{r.Next(0, 255)}.{r.Next(0, 255)}.{r.Next(255)} {gen}");
+ WriteLine($"[1] outgoing connection(s) is using {r.Next(0, 16)} MiBs of bandwith.");
+ break;
}
}
public string Generate(int amountToGenerate)