Class IpAddressAssignedEventArgs

    Definition

    Namespace:
    Tizen.Network.WiFiDirect
    Assembly:
    Tizen.Network.WiFiDirect.dll

    An extended EventArgs class which contains address properties of the peer when it connects to a group owner. This event is triggered when a peer device successfully connects to a Wi-Fi Direct group and receives IP address assignment.

    public class IpAddressAssignedEventArgs : EventArgs
    Inheritance
    object
    System.EventArgs
    IpAddressAssignedEventArgs
    Remarks

    This event is raised by the IpAddressAssigned event. Use this event to get network configuration information when a peer joins the group:

    • MAC address for device identification
    • Assigned IP address for network communication
    • Network interface address for routing

    Example usage:

    peer.IpAddressAssigned += (sender, e) =>
    {
        Console.WriteLine($"Peer {e.MacAddress} assigned IP: {e.IpAddress}");
        Console.WriteLine($"Interface: {e.InterfaceAddress}");
    
        // Now you can establish network communication with the peer
        // using the assigned IP address
    };

    Properties

    View Source

    InterfaceAddress

    The network interface address of the connected peer device. This is the network interface identifier used for routing and network configuration.

    Declaration
    public string InterfaceAddress { get; }
    Property Value
    Type Description
    string

    The network interface address string (e.g., "AA:BB:CC:DD:EE:FF").

    Remarks

    This event is raised by the IpAddressAssigned event. Use this event to get network configuration information when a peer joins the group:

    • MAC address for device identification
    • Assigned IP address for network communication
    • Network interface address for routing

    Example usage:

    peer.IpAddressAssigned += (sender, e) =>
    {
        Console.WriteLine($"Peer {e.MacAddress} assigned IP: {e.IpAddress}");
        Console.WriteLine($"Interface: {e.InterfaceAddress}");
    
        // Now you can establish network communication with the peer
        // using the assigned IP address
    };
    View Source

    IpAddress

    The IP address assigned to the connected peer device. This is the network address that can be used for socket communication with the peer.

    Declaration
    public string IpAddress { get; }
    Property Value
    Type Description
    string

    The IP address string (e.g., "192.168.49.2").

    Remarks

    This event is raised by the IpAddressAssigned event. Use this event to get network configuration information when a peer joins the group:

    • MAC address for device identification
    • Assigned IP address for network communication
    • Network interface address for routing

    Example usage:

    peer.IpAddressAssigned += (sender, e) =>
    {
        Console.WriteLine($"Peer {e.MacAddress} assigned IP: {e.IpAddress}");
        Console.WriteLine($"Interface: {e.InterfaceAddress}");
    
        // Now you can establish network communication with the peer
        // using the assigned IP address
    };
    View Source

    MacAddress

    The MAC address of the connected peer device. This uniquely identifies the peer device that received the IP assignment.

    Declaration
    public string MacAddress { get; }
    Property Value
    Type Description
    string

    The MAC address string of the peer device (e.g., "AA:BB:CC:DD:EE:FF").

    Remarks

    This event is raised by the IpAddressAssigned event. Use this event to get network configuration information when a peer joins the group:

    • MAC address for device identification
    • Assigned IP address for network communication
    • Network interface address for routing

    Example usage:

    peer.IpAddressAssigned += (sender, e) =>
    {
        Console.WriteLine($"Peer {e.MacAddress} assigned IP: {e.IpAddress}");
        Console.WriteLine($"Interface: {e.InterfaceAddress}");
    
        // Now you can establish network communication with the peer
        // using the assigned IP address
    };
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX