Socially Distant OS
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Ritchie.Toolbox
      • Color
      • ColorHelpers
      • GuiManager
      • GuiScaleMode
      • GuiSynchronizationContext
      • IGuiContext
      • ILayer
      • IOrderedCollection<T>
      • PopoverLayer
    • Ritchie.Toolbox.Accessibility
      • IAccessibleDescription
      • ISpeechHandler
      • NarratorSpeechHandler
      • SpeechDispatcherBackend
      • TextToSpeech
    • Ritchie.Toolbox.Animation
      • Animation
      • AnimationExtensions
      • AnimationWait
      • Animation<TValue>
      • Animator
      • ColorAnimation
      • CurveFunction
      • CurveFunctions
      • IAnimation
      • IAnimationHandle
      • IAnimationUpdateAction
      • InterpolationFunction<T>
      • NumberAnimation<TNumber>
      • Vector2Animation
      • Vector3Animation
      • Vector4Animation
    • Ritchie.Toolbox.Common
      • Emojis
      • InvalidationMode
      • Rounding
      • StateChange<T>
    • Ritchie.Toolbox.Core
      • LineGraph<TNumber>
      • RunAtLaunchAttribute
      • RunAtLaunchService
    • Ritchie.Toolbox.CustomProperties
      • CanvasAnchors
      • CustomPropertyObject
      • FlexPanelProperties
      • StructProperty<T>
    • Ritchie.Toolbox.Debugging
      • GuiDebugger
      • IInspectChild
      • IInspectable
      • IInspector
      • IInspectorCategory
      • INumberInput<TNumber>
      • IWidgetTreeRenderer
      • InspectorExtensions
    • Ritchie.Toolbox.Effects
      • IEffect
      • IWidgetEffect
    • Ritchie.Toolbox.Events
      • FocusEvent
      • GuiEvent
      • IDragEndHandler
      • IDragHandler
      • IDragStartHandler
      • IGainFocusHandler
      • IKeyCharHandler
      • IKeyDownHandler
      • IKeyUpHandler
      • ILoseFocusHandler
      • IMouseClickHandler
      • IMouseDownHandler
      • IMouseEnterHandler
      • IMouseHandler
      • IMouseLeaveHandler
      • IMouseMoveHandler
      • IMouseScrollHandler
      • IMouseUpHandler
      • IPreviewKeyCharHandler
      • IPreviewKeyDownHandler
      • IPreviewKeyUpHandler
      • IUpdateHandler
      • KeyCharEvent
      • KeyEvent
      • ModifierKeys
      • MouseButtonEvent
      • MouseEvent
      • MouseMoveEvent
      • MouseScrollEvent
    • Ritchie.Toolbox.Layout
      • ClippingMode
      • Direction
      • FlexMode
      • FontDescription
      • HorizontalAlignment
      • LayoutRect
      • NudgeDirection
      • Padding
      • TextAlignment
      • VerticalAlignment
      • Visibility
    • Ritchie.Toolbox.ListAdapters
      • DataHelper<T>
      • INotifyDataChanged
      • ListAdapter<TContainerWidget, TViewHolder>
      • RecyclableWidgetController
      • RecyclableWidgetList<TContainerWidget>
      • RecyclableWidgetList<TContainerWidget>.RecyclableViewHolder
      • RecycleBin
      • RecycleBin<T>
      • ViewHolder
    • Ritchie.Toolbox.Niceities.Completions
      • CompletionGraph
    • Ritchie.Toolbox.Popovers
      • PopoverContent
      • PopoverLocationPreference
      • PopoverText
      • PopoverWidget
    • Ritchie.Toolbox.Rendering
      • GeometryHelper
      • GuiMeshBuilder
      • GuiRenderer
      • Mesh
      • WidgetGeometry
    • Ritchie.Toolbox.Signals
      • ISignalHandler<TSignal>
      • SignalDirection
      • SignalEvent<TSignal>
    • Ritchie.Toolbox.TextRendering
      • Font
      • FontFamily
      • FontFamilyInfo
      • FontSizeMetric
      • FontWeight
      • IFontFamily
      • IFontFamilyProvider
      • PresetFontFamily
      • Typeface
      • Typeface.GlyphInfo
    • Ritchie.Toolbox.VisualStyles
      • DefaultWidgetBackgroundRenderer
      • IGetTextColor
      • IGetThemeProperties<TThemeProperties>
      • IUpdateThemeProperties
      • IVisualRenderer<TVisualProperties>
      • IVisualRenderer<TVisual, TVisualState>
      • IVisualStyle
      • IVisual<TVisualProperties>
      • IWidgetBackgroundRenderer
      • IWidgetRenderer<TWidget>
      • StyleManager
      • WidgetBag<T>
    • Ritchie.Toolbox.Widgets
      • Box
      • Button
      • Button.LayoutProperties
      • Button.VisualState
      • CanvasPanel
      • ContainerWidget
      • ContentWidget
      • DropdownButtonThemeProperties
      • DropdownButtonVisualState
      • DropdownItemView<TItemType>
      • DropdownItemVisualState
      • DropdownOverlayVisualState
      • DropdownStringView
      • Dropdown<TItemType, TView>
      • FlexPanel
      • IContainerWidget
      • IContentWidget
      • IDropdownButtonVisual
      • IImageLocator
      • Icon
      • Image
      • Label
      • LinkClickSignal
      • ListItem
      • ListItem.LayoutProperties
      • ListItem.VisualState
      • OverlayWidget
      • Popover
      • Popover.PopoverThemeProperties
      • Popover.PopoverVisualState
      • Pressable
      • PressableBox
      • ProgressBar
      • ProgressBar.LayoutrProperties
      • ProgressBar.VisualState
      • ScrollBar
      • ScrollBar.LayoutProperties
      • ScrollBar.VisualState
      • ScrollView
      • Slider
      • Slider.LayoutProperties
      • Slider.VisualState
      • StackPanel
      • StringDropdown
      • TablePanel
      • TextField
      • TextField.ThemeProperties
      • TextField.VisualState
      • TextTransform
      • TextWidget
      • TextWidget.ThemeProperties
      • Toggle
      • Toggle.LayoutProperties
      • Toggle.VisualState
      • Widget
      • Widget.BackgroundStyleProperties
      • WidgetTransform
      • WrapPanel
    • Ritchie.Toolbox.Widgets.CodeEditing
      • CodeEditor
      • CodeEditor.DrawElement
      • CodeEditor.ThemeProperties
      • CodeEditor.VisualState
    • SociallyDistant
      • SystemModule
    • SociallyDistant.Core
      • CollectionExtensions
      • Time
      • TimeData
    • SociallyDistant.Core.Audio
      • GuiSoundName
      • SoundScheme
      • SoundSchemeAttribute
    • SociallyDistant.Core.BuildTasks
      • MarkdownPreprocessorTask
      • SdshScriptCheckTask
    • SociallyDistant.Core.Chat
      • ChatScriptType
      • ChatStartType
      • IBranchDefinition
      • IChatConversation
      • IConversationController
      • ScriptConditionCheck
      • ScriptConditionMode
      • ScriptConditionType
    • SociallyDistant.Core.Config
      • IgnoreModdingLegalWaiverAttribute
    • SociallyDistant.Core.ContentManagement
      • ContentCollectionBuilder
      • ContentPipeline
      • DefaultScriptImporter
      • IContentFinder
      • IContentGenerator
      • IContentManager
      • IGameContent
      • IGameContentSource
      • ShebangAttribute
      • ShellScriptImporter
      • XnbContentIdentifier
    • SociallyDistant.Core.Core
      • ConsoleExtensions
      • CraftingIngredient
      • CraftingRecipe
      • CreateCallback<TDataElement>
      • DeleteCallback<TDataElement>
      • FileAssociation
      • FileAssociationAttribute
      • FileAssociationManager
      • GameMode
      • Gender
      • GlobalUtilities
      • ICachedScript
      • IDataObject<TDataElement>
      • IDataTable<TDataElement>
      • IDataWithId
      • IDebuggable
      • ILedger
      • INamedAsset
      • INarrativeObjectTable<TDataElement>
      • ISerializableDataObject<TDataElement, TRevision, TSerializer>
      • ISerializableDataTable<TDataElement, TRevision, TSerializer>
      • ISkillTree
      • IUnlockableAsset
      • IWorld
      • IWorldDataCallbacks
      • IWorldDataObject<TDataElement>
      • IWorldFlagCollection
      • IWorldManager
      • IWorldSection
      • IWorldTable<TDataElement>
      • IngredientRequirement
      • LogicalAccessLock
      • ModifyCallback<TDataElement>
      • ObjectId
      • PathUtility
      • PlayerLevelInfo
      • RecipeCategory
      • SharedReference<T>
      • ShellExtensions
      • Singleton<T>
      • SociallyDistantUtility
      • StringUtility
      • SystemVolume
      • VirtualConsole
      • WorldRevision
    • SociallyDistant.Core.Core.Config
      • CommonSettingsCategorySections
      • CommonSettingsSections
      • ISettingsManager
      • ISettingsPageBuilder
      • ISettingsPageContext
      • ISettingsUiBuilder
      • SettingsCategory
      • SettingsCategoryAttribute
      • SettingsFieldAttribute
      • SettingsFieldUiDefinition
      • SettingsType
    • SociallyDistant.Core.Core.Config.SystemConfigCategories
      • AccessibilitySettings
      • DeveloperSettings
      • GraphicsSettings
      • TextElementScale
      • UiSettings
    • SociallyDistant.Core.Core.Events
      • DeviceEvent
      • Event
      • EventBus
      • FileSystemEvent
      • FileSystemEventType
      • PlaySongEvent
      • PlaySoundEvent
      • ResourceEvent
      • WitnessEvent
      • WitnessType
    • SociallyDistant.Core.Core.Scripting
      • ArrayView<TElementType>
      • CommonScriptHooks
      • FileRedirectionType
      • FunctionAttribute
      • HookScript
      • HypervisorComputer
      • HypervisorFileSystem
      • HypervisorProcess
      • HypervisorUser
      • IArrayView<T>
      • ICommandHistoryProvider
      • ICommandShell
      • IHelpProvider
      • IHistoryCollection
      • IHookListener
      • IInteractiveShellContext
      • IScriptCommand
      • IScriptExecutionContext
      • IScriptFunction
      • IScriptSystem
      • ITerminalProcessController
      • InteractiveShell
      • OperatingSystemExecutionContext
      • ScriptCommandProvider
      • ScriptContextCommand
      • ScriptDelegate
      • ScriptDelegateFunction
      • ScriptEndException
      • ScriptExecutionContext
      • ScriptFunctionManager
      • ScriptModule
      • ScriptModuleManager
      • ScriptSystem
      • ShellParseOptions
      • ShellScriptAsset
      • ShellTester
      • ShellToken
      • ShellTokenType
      • ShellUtility
      • SimpleEnvironmentVariableProvider
      • StringView
      • UserScriptExecutionContext
      • WorldScriptCommands
    • SociallyDistant.Core.Core.Scripting.Consoles
      • FileOutputConsole
      • LineListConsole
      • RedirectedConsole
    • SociallyDistant.Core.Core.Scripting.GlobalCommands
      • ExecuteHookCommand
      • SaveGameCommand
      • WorldFlagCommand
    • SociallyDistant.Core.Core.Scripting.Instructions
      • AssignmentInstruction
      • BranchEvaluator
      • BranchInstruction
      • CommandData
      • CommandExpansion
      • CommandExpansionConsole
      • EmptyShellInstruction
      • ExpressionEvaluator
      • FunctionDeclaration
      • IArgumentEvaluator
      • LogicalAndInstruction
      • LogicalOrInstruction
      • ParallelInstruction
      • PipeConsole
      • PipeEntrance
      • PipeInstruction
      • SequentialInstruction
      • ShellCaseStatement
      • ShellInstruction
      • ShellPattern
      • SingleInstruction
      • VariableAccessEvaluator
      • WhileLoop
    • SociallyDistant.Core.Core.Scripting.Parsing
      • FunctionFrame
      • LegacyScriptParser
      • LocalScriptExecutionContext
      • ScriptFunction
      • ScriptParser
      • ScriptParser.TokenElement
      • TextArgumentEvaluator
    • SociallyDistant.Core.Core.Scripting.StandardModules
      • NpcModule
      • ShellHelpersModule
    • SociallyDistant.Core.Core.Serialization
      • IDataReader
      • IDataWriter
      • INarrativeObject
      • IRevisionComparer<TRevision>
      • IRevisionedSerializer<TRevision>
      • ISerializable
      • ISerializable<TRevision, TSerializer>
      • IWorldData
      • IWorldSerializer
      • SerializationUtility
    • SociallyDistant.Core.Core.Serialization.Binary
      • BinaryDataReader
      • BinaryDataWriter
    • SociallyDistant.Core.Core.Systems
      • Counter
      • UniqueIntGenerator
    • SociallyDistant.Core.Core.Threading
      • WorkQueue
    • SociallyDistant.Core.Core.WorldData
      • IGlobalState
    • SociallyDistant.Core.Core.WorldData.Data
      • CharacterAttributes
      • DocumentElement
      • DocumentElementType
      • GenerationType
      • GlobalWorldData
      • MailTypeFlags
      • MemberGroupType
      • MessageChannelType
      • NetworkServiceData
      • RelationshipType
      • WitnessedObjectType
      • WorldChannelData
      • WorldComputerData
      • WorldCraftedExploitData
      • WorldDomainNameData
      • WorldGenerationTrackingData
      • WorldGuildData
      • WorldHackableData
      • WorldInternetServiceProviderData
      • WorldInventoryItem
      • WorldLocalNetworkData
      • WorldMailData
      • WorldMemberData
      • WorldMessageData
      • WorldNetworkConnection
      • WorldNewsData
      • WorldNotificationData
      • WorldPlayerData
      • WorldPortForwardingRule
      • WorldPostData
      • WorldProfileData
      • WorldRelationshipData
      • WorldWitnessedObjectData
    • SociallyDistant.Core.Debugging
      • DebugEvent
      • DebugEventType
      • DebugService
      • IDebugService
    • SociallyDistant.Core.FileSystemProviders
      • TempFileSystemProvider
    • SociallyDistant.Core.Hacking
      • IPayload
      • Vulnerabilities
      • Vulnerability
    • SociallyDistant.Core.Missions
      • DangerLevel
      • IMission
      • IMissionContext
      • IMissionController
      • IMissionTask
      • IObjective
      • IObjectiveHandle
      • MissionEvent
      • MissionFailedException
      • MissionStartCondition
      • MissionTaskAttribute
      • MissionType
      • ObjectiveKind
      • ObjectiveResult
      • ObjectiveType
    • SociallyDistant.Core.Modules
      • Application
      • GameModule
      • IGameContext
      • IGameData
      • IGameDataWithCheckpoints
      • IGameRestorePoint
      • IModuleManager
      • INetworkSimulation
      • IUriManager
      • IUriSchemeHandler
      • IVirtualScreen
      • InitializationFlow
      • PlayerInfo
      • XnaHelpers
    • SociallyDistant.Core.News
      • Article
      • ArticleData
      • ArticleFlags
      • ArticleInfo
      • IArticleAsset
    • SociallyDistant.Core.OS
      • IKernel
    • SociallyDistant.Core.OS.Devices
      • ConsoleCapabilities
      • ConsoleDriver
      • ConsoleInputData
      • ConsoleWrapper
      • EntryBuilder
      • HostConsole
      • HostScreen
      • IAutoCompleteSource
      • IAutoCompletedConsole
      • IComputer
      • IConsoleDriver
      • IEnvironmentVariableProvider
      • IHackable
      • IInitProcess
      • IIterableEnvironmentVariableProvider
      • ISystemProcess
      • ISystemServiceProvider
      • ITextConsole
      • ITextConsoleWithPhysicalDisplay
      • IUser
      • KeyModifiers
      • LineEditor
      • LineWrapper
      • MultiCancellationTokenSource
      • NullConsole
      • NullScreen
      • PrivilegeLevel
      • RepeatableCancellationToken
      • SystemService
      • SystemServiceAttribute
    • SociallyDistant.Core.OS.FileSystems
      • EntryTypes
      • IDirectoryEntry
      • IFileEntry
      • IFileOverrider
      • IFileSystem
      • IFileSystemProvider
      • IFileSystemTable
      • IFileSystemTableEntry
      • IMountManager
      • IVirtualFileSystem
      • InMemoryDirectoryEntry
      • InMemoryFileEntry
      • InMemoryFileSystem
      • MountManager
      • NotifyingMemoryStream
      • ReadOnlyMemoryStream
      • VirtualFileSystem
    • SociallyDistant.Core.OS.FileSystems.Host
      • FileInputConsole
      • HostDirectoryEntry
      • HostFileEntry
      • HostJail
    • SociallyDistant.Core.OS.FileSystems.Immutable
      • ImmutableDirectoryEntry
      • ImmutableDirectoryTree
    • SociallyDistant.Core.OS.Network
      • ConnectionResultType
      • HackableDevice
      • HackableGenerationMethod
      • IAcceptNetworkClient<TNetworkClient>
      • IConnectionHandle
      • IHostNameResolver
      • INetworkAsset
      • INetworkClient
      • INetworkConnection
      • INetworkInterfaceEnumerator
      • INetworkNode
      • INetworkServer
      • IServerConnection
      • NetUtility
      • NetworkInterfaceInformation
      • NetworkResolveResult
      • NetworkServer<TNetworkClient, TServerConnection>
      • PingResult
      • PortResolution
      • PortScanResult
      • PortStatus
      • Subnet
    • SociallyDistant.Core.OS.Tasks
      • CommandAttribute
      • ICommandTask
      • ITaskManager
    • SociallyDistant.Core.Programs
      • ProgramController
      • ProgramController.ProgramContext
    • SociallyDistant.Core.Shell
      • CommonColor
      • IIconDescriptor
      • IProgram
      • IShellContext
      • IShellOverlay
      • ITutorialOverlay
      • IconDescriptorFactory
      • SociallyDistantExtensions
      • TextIconDescriptor
      • TextureIconDescriptor
    • SociallyDistant.Core.Shell.Common
      • CompositeIcon
      • INotificationGroup
      • INotificationManager
      • NotificationGroups
    • SociallyDistant.Core.Shell.InfoPanel
      • IInfoPanelService
      • InfoPanelCheckList
      • InfoPanelCheckListItem
      • InfoPanelCheckListState
      • InfoWidgetCreationData
      • InfoWidgetData
    • SociallyDistant.Core.Shell.Windowing
      • CaptionButtonStyle
      • CaptionButtonType
      • IBringWindowToFocus
      • IMessageDialog
      • IUpdateDesiredPositions
      • IWindow
      • IWindowGroup
      • MessageBoxButtonData
      • MessageBoxButtons
      • MessageBoxType
      • MessageDialogResult
      • Window
      • Window.ThemeProperties
      • Window.VisualState
      • WindowCaptionButton
      • WindowCaptionButton.ThemeProperties
      • WindowCaptionButton.VisualState
      • WindowHints
    • SociallyDistant.Core.Shortcuts
      • ShortcutManager
    • SociallyDistant.Core.Social
      • AvatarSize
      • ChannelIconData
      • ICharacterGenerator
      • IChatChannel
      • IChatGroup
      • IChatMember
      • IDirectConversation
      • IGuild
      • IGuildList
      • IMailMessage
      • IMailThread
      • INarrativeThread
      • INewsArticle
      • INewsManager
      • IProfile
      • ISocialService
      • IUserMessage
      • NarrativeThread
    • SociallyDistant.Core.UI
      • GuiDebugService
      • GuiService
      • LucideIcons
    • SociallyDistant.Core.UI.Common
      • Avatar
      • CompositeIconWidget
      • DecorativeBlock
      • DecorativeBlock.VisualState
      • Emblem
      • Emblem.LayoutProperties
      • Emblem.VisualState
      • ListItemWithHeader
      • SimpleField
      • ToolbarIcon
    • SociallyDistant.Core.UI.Console
      • ConsoleLineEditor
      • ConsoleSizeMode
      • ConsoleThemeProperties
      • ITextScreen
      • TextScreen
      • TextScreenExtensions
    • SociallyDistant.Core.UI.Effects
      • BackgroundBlurProperties
      • BackgroundBlurWidgetEffect
      • DefaultAvatarColorizer
      • DefaultAvatarProperties
      • MonoGameEffect
    • SociallyDistant.Core.UI.Recycling
      • AvatarWidgetBuilder
      • AvatarWidgetController
      • DropdownWidgetBuilder
      • DropdownWidgetController
      • IRecyclableWidgetBuilder
      • ISectionWidgetBuilder
      • ImageWidgetBuilder
      • ImageWidgetController
      • InputFieldWidgetBuilder
      • InputFieldWidgetController
      • LabelWidgetBuilder
      • LabelWidgetController
      • ListItemWidgetBuilder<T>
      • ListItemWidgetController<T>
      • SectionWidgetBuilder
      • SectionWidgetController
      • SliderWidgetBuilder
      • SliderWidgetController
      • SwitchWidgetBuilder
      • SwitchWidgetController
      • TwoLineListItemWithIcon
      • WidgetBuilder
    • SociallyDistant.Core.UI.Recycling.SettingsWidgets
      • CompletionListWidget
      • CompletionListWidget.ThemeProperties
      • CompletionListWidget.VisualState
      • Cycler
      • FormField
      • FormField.LayoutProperties
      • FormField.VisualState
      • SectionTitle
      • SettingsFieldWidgetBuilder
      • SettingsFieldWidgetController
      • WidgetListSettingsUiBuilder
    • SociallyDistant.Core.UI.Shell
      • TrayAction
    • SociallyDistant.Core.UI.VisualStyles
      • ChatMessageThemeProperties
      • ChatMessageVisualState
      • DockLayoutProperties
      • DockVisualState
      • IChatMessageBox
      • IChatMessageRenderer
      • IDockIconView
      • InputFieldType
      • SociallyDistantVisualStyle
      • SociallyDistantVisualStyle.CodeEditorStyle
      • SociallyDistantVisualStyle.DropdownButtonStyle
      • StatusBarLayoutProperties
      • StatusBarVisualState
      • UserStyle
      • WidgetBackgrounds
      • WidgetForegrounds
    • SociallyDistant.Core.UI.Widgets
      • BlurredOverlay
      • BlurredOverlay.VisualState

    Class NetUtility

    Static class containing utilities used for the in-game network system.

    Inheritance
    object
    NetUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SociallyDistant.Core.OS.Network
    Assembly: SociallyDistant.Framework.dll
    Syntax
    public static class NetUtility

    Fields

    LoopbackSubnet

    A Subnet value representing the 127.0.0.0/8 network range, used for loopback addresses.

    Declaration
    public static readonly Subnet LoopbackSubnet
    Field Value
    Type Description
    Subnet

    MaxPacketsPerSimulation

    The maximum number of packets a given network node will process during a single simulation update. Queueing more than this amount of packets before the next simulation update may cause the game to lag.

    Declaration
    public const int MaxPacketsPerSimulation = 16384
    Field Value
    Type Description
    int

    Properties

    LoopbackAddress

    Value that should evaluate to 127.0.0.1, the most-common loopback address.

    Declaration
    public static uint LoopbackAddress { get; }
    Property Value
    Type Description
    uint

    Methods

    CountBits(uint)

    Count the number of bits set in an unsigned integer.

    Declaration
    public static int CountBits(uint value)
    Parameters
    Type Name Description
    uint value

    Any number.

    Returns
    Type Description
    int

    A number indicating the amount of bits set in the given number.

    Remarks

    By the way, this entire game is just bits and bytes flowing through pipes and wires.

    GetMacAddressString(long)

    Get the MAC address string representing a given number.

    Declaration
    public static string GetMacAddressString(long macAddress)
    Parameters
    Type Name Description
    long macAddress

    Any 64-bit integer.

    Returns
    Type Description
    string

    A MAC address string representing the given number.

    Remarks

    Generally, a MAC address in real life contains 6 bytes of actual data. As such, only the first 6 bytes (48 bits) of the provided number are taken into account.

    This means that, given a value of 0xffffaabbccddeeff, a string of aa:bb:cc:dd:ee:ff should be returned.

    GetNetworkAddressString(uint)

    Get the IPv4 string representation of a network address.

    Declaration
    public static string GetNetworkAddressString(uint networkAddress)
    Parameters
    Type Name Description
    uint networkAddress

    Any 32-bit integer representing a network address.

    Returns
    Type Description
    string

    The text representation of the given address.

    GetRandomMacAddress()

    Generate a random MAC address, storing it in a 64-bit integer.

    Declaration
    public static long GetRandomMacAddress()
    Returns
    Type Description
    long

    A number representing the random MAC address.

    TryParseCidrNotation(string?, out Subnet)

    Attempt to parse the CIDR representation of a network.

    Declaration
    public static bool TryParseCidrNotation(string? cidrNotation, out Subnet subnet)
    Parameters
    Type Name Description
    string cidrNotation

    A string containing a range of IP addresses in CIDR notation.

    Subnet subnet

    If parsing was successful, a Subnet value representing the range of addresses in the network.

    Returns
    Type Description
    bool

    True if the parsing was successful, false otherwise.

    TryParseMacAddress(string, out long)

    Attempt to parse a MAC address string.

    Declaration
    public static bool TryParseMacAddress(string macAddressString, out long macAddress)
    Parameters
    Type Name Description
    string macAddressString

    A string representing a network MAC address.

    long macAddress

    If parsing was successful, will be set to the value of the MAC address.

    Returns
    Type Description
    bool

    True if parsing was successful, false otherwise.

    TryParseNetworkAddress(string?, out uint)

    Try to parse an IP address.

    Declaration
    public static bool TryParseNetworkAddress(string? networkAddressString, out uint networkAddress)
    Parameters
    Type Name Description
    string networkAddressString

    The string representation of an IPv4 address.

    uint networkAddress

    The parsed IP address, or 0 if parsing failed.

    Returns
    Type Description
    bool

    True if parsing was successful.

    In this article
    Back to top Generated by DocFX