Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtNetwork.QNetworkAddressEntry Class Reference

The QNetworkAddressEntry class stores one IP address supported by a network interface, along with its associated netmask and broadcast address. More...

Inheritance diagram for QtNetwork.QNetworkAddressEntry:
Collaboration diagram for QtNetwork.QNetworkAddressEntry:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QNetworkAddressEntry ()
 
 
 QNetworkAddressEntry (QNetworkAddressEntry other)
 
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QNetworkAddressEntry arg1, QNetworkAddressEntry arg2)
 
 
static bool operator== (QNetworkAddressEntry arg1, QNetworkAddressEntry arg2)
 
 

Protected Member Functions

 QNetworkAddressEntry (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

new QHostAddress Broadcast [get, set]
 
 
new QHostAddress Ip [get, set]
 
 
new QHostAddress Netmask [get, set]
 
 
new int PrefixLength [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QNetworkAddressEntry class stores one IP address supported by a network interface, along with its associated netmask and broadcast address.

Each network interface can contain zero or more IP addresses, which in turn can be associated with a netmask and/or a broadcast address (depending on support from the operating system).

This class represents one such group.

Constructor & Destructor Documentation

QtNetwork.QNetworkAddressEntry.QNetworkAddressEntry ( System.Type  dummy)
protected
QtNetwork.QNetworkAddressEntry.QNetworkAddressEntry ( )

Constructs an empty QNetworkAddressEntry object.

QtNetwork.QNetworkAddressEntry.QNetworkAddressEntry ( QNetworkAddressEntry  other)

Constructs a QNetworkAddressEntry object that is a copy of the object other.

Member Function Documentation

virtual void QtNetwork.QNetworkAddressEntry.CreateProxy ( )
virtual
new void QtNetwork.QNetworkAddressEntry.Dispose ( )
override bool QtNetwork.QNetworkAddressEntry.Equals ( object  o)
override int QtNetwork.QNetworkAddressEntry.GetHashCode ( )
static bool QtNetwork.QNetworkAddressEntry.operator!= ( QNetworkAddressEntry  arg1,
QNetworkAddressEntry  arg2 
)
static

Returns true if this network address entry is different from other.

static bool QtNetwork.QNetworkAddressEntry.operator== ( QNetworkAddressEntry  arg1,
QNetworkAddressEntry  arg2 
)
static

Returns true if this network address entry is the same as other.

Member Data Documentation

SmokeInvocation QtNetwork.QNetworkAddressEntry.interceptor
protected

Property Documentation

new QHostAddress QtNetwork.QNetworkAddressEntry.Broadcast
getset

Returns the broadcast address associated with the IPv4 address and netmask. It can usually be derived from those two by setting to 1 the bits of the IP address where the netmask contains a 0. (In other words, by bitwise-OR'ing the IP address with the inverse of the netmask)

This member is always empty for IPv6 addresses, since the concept of broadcast has been abandoned in that system in favor of multicast. In particular, the group of hosts corresponding to all the nodes in the local network can be reached by the "all-nodes" special multicast group (address FF02::1).

Sets the broadcast IP address of this QNetworkAddressEntry object to newBroadcast.

new QHostAddress QtNetwork.QNetworkAddressEntry.Ip
getset

This function returns one IPv4 or IPv6 address found, that was found in a network interface.

Sets the IP address the QNetworkAddressEntry object contains to newIp.

new QHostAddress QtNetwork.QNetworkAddressEntry.Netmask
getset

Returns the netmask associated with the IP address. The netmask is expressed in the form of an IP address, such as 255.255.0.0.

For IPv6 addresses, the prefix length is converted to an address where the number of bits set to 1 is equal to the prefix length. For a prefix length of 64 bits (the most common value), the netmask will be expressed as a QHostAddress holding the address FFFF:FFFF:FFFF:FFFF::

Sets the netmask that this QNetworkAddressEntry object contains to newNetmask. Setting the netmask also sets the prefix length to match the new netmask.

new int QtNetwork.QNetworkAddressEntry.PrefixLength
getset

Returns the prefix length of this IP address. The prefix length matches the number of bits set to 1 in the netmask (see netmask()). For IPv4 addresses, the value is between 0 and 32. For IPv6 addresses, it's contained between 0 and 128 and is the preferred form of representing addresses.

This function returns -1 if the prefix length could not be determined (i.e., netmask() returns a null QHostAddress()).

This function was introduced in Qt 4.5.

Sets the prefix length of this IP address to length. The value of length must be valid for this type of IP address: between 0 and 32 for IPv4 addresses, between 0 and 128 for IPv6 addresses. Setting to any invalid value is equivalent to setting to -1, which means "no prefix length".

Setting the prefix length also sets the netmask (see netmask()).

This function was introduced in Qt 4.5.

virtual System.IntPtr QtNetwork.QNetworkAddressEntry.SmokeObject
getset