Skip to content

Add BroadcastIP property to TIdStackLocalAddressIPv4 #669

@rlebeau

Description

@rlebeau

Add BroadcastIP property to TIdStackLocalAddressIPv4. On platforms with getifaddrs() available, simply return the ifaddrs.ifa_broadaddr field if the ifaddrs.ifa_flags field contains the IFF_BROADCAST flag. Otherwise, calculate the broadcast IP manually using the adapter's IP address and subnet mask:

broadcastIP := adapterIP or (not subnetMask);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Element: Socket StacksIssues related to OS socket APIs, TIdStack and TIdSocketList descedants, etcStatus: ReportedIssue has been reported for reviewType: EnhancementIssue is proposing a new feature/enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions