maxon.NetworkIpAddrInterface

Description

This class represents an Internet Protocol (IP) address.
It is version agnostic and supports both IPv4 and IPv6.

Inheritance diagram

Inheritance

Parent Class:

Children Classes:

Methods Signature

Flush()

Deprecated since version 20.

GetNativeProtocol()

Returns the type of the IP address used in this object.

GetProtocol()

Returns the type of the IP address used in this object.

GetString([port])

Retrieves the string representation of the current IP address.

SetIPv4()

Sets an IP v4 address from the native in_addr structure.

SetIPv6()

Sets an IP v6 address from the native in_addr structure.

Methods Definition

NetworkIpAddrInterface.Flush()

Deprecated since version 20: Use NetworkIpAddrInterface.Reset() instead.

NetworkIpAddrInterface.GetNativeProtocol()

Returns the type of the IP address used in this object.

Returns

The Protocol type.

Return type

int

NetworkIpAddrInterface.GetProtocol()

Returns the type of the IP address used in this object.

Returns

The IP address type.

Return type

maxon.PROTOCOL

NetworkIpAddrInterface.GetString(port=0)

Retrieves the string representation of the current IP address.

Parameters

port (int) – The port to be appended at the end of the IP address.

Returns

The string representation of the current IP address.

Return type

str

NetworkIpAddrInterface.SetIPv4()

Sets an IP v4 address from the native in_addr structure.

NetworkIpAddrInterface.SetIPv6()

Sets an IP v6 address from the native in_addr structure.