Fix network loop puzzles (add pingAgain test)
This commit is contained in:
@@ -40,7 +40,7 @@ namespace EduNetworkBuilder
|
||||
public enum NBSoundType { none, success, saved_ok, saved_failed }
|
||||
public enum RTFWindowContents { help, about, release_notes }
|
||||
public enum NetTestType { NeedsLocalIPTo, NeedsDefaultGW, NeedsLinkToDevice, NeedsRouteToNet,
|
||||
SuccessfullyPings, SuccessfullyArps, SuccessfullyDHCPs, HelpRequest, ReadContextHelp, FailedPing,
|
||||
SuccessfullyPings, SuccessfullyPingsAgain, SuccessfullyArps, SuccessfullyDHCPs, HelpRequest, ReadContextHelp, FailedPing,
|
||||
DHCPServerEnabled,
|
||||
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway
|
||||
}
|
||||
@@ -304,6 +304,13 @@ namespace EduNetworkBuilder
|
||||
if (myWin.GameRandomGen == null) return null;
|
||||
return myWin.myNetwork;
|
||||
}
|
||||
public static int nextPacketID()
|
||||
{
|
||||
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||
if (myWin == null) return 1; //return something.
|
||||
return myWin.nextPacketID();
|
||||
}
|
||||
|
||||
public static BuilderWindow GetBuilderWin()
|
||||
{
|
||||
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||
|
Reference in New Issue
Block a user