CVBpy 15.0
NetworkConnection Class Reference

Basic network connection operations. More...

Inherits object.

Public Member Functions

str to_ip_address (int ip)
 Creates an IPAddress from the given uint ip. More...
 
int to_ip_address_uint (str ip_address)
 Creates an uint IPAddress from the given ip string. More...
 

Properties

 ip_address = property
 str: Get the IP address as string.
 
 ip_address_uint = property
 int: Getthe IP address as int.
 
 port = property
 int: Get the port value.
 

Detailed Description

Basic network connection operations.

Create network connection information from IP address and port.

Parameters

ip_address : Union[str, int] IP address as string or integer.

port : int Port as unsigned integer.

Member Function Documentation

◆ to_ip_address()

str to_ip_address ( int  ip)

Creates an IPAddress from the given uint ip.

Parameters

ip : int IPv4 address as an int.

Returns

str New IPAddress as string.

◆ to_ip_address_uint()

int to_ip_address_uint ( str  ip_address)

Creates an uint IPAddress from the given ip string.

Parameters

ip_address : str IPv4 address as string.

Returns

int New IPAddressUInt as int.