Expand description
cbindgen:ignore
Re-exports§
pub use self::_LogLevel as LogLevel;
pub use self::_LegacyFileType as LegacyFileType;
pub use self::_PacketDeliveryStatusFlags as PacketDeliveryStatusFlags;
pub use self::_StatusListenerFilter as StatusListenerFilter;
pub use self::_ProtocolType as ProtocolType;
pub use self::_LogInfoFlags as LogInfoFlags;
pub use self::_CompatSocketTypes as CompatSocketTypes;
pub use self::_FileType as FileType;
pub use self::_TriggerType as TriggerType;
Structs§
Constants§
Statics§
Functions§
- Turns the IPv4 address into a newly allocated string that should be freed by the caller. Address must be in network byte order.
- Checks if the given addresses are equal. This function is NULL safe, so so either or both addresses may be NULL. @param a a valid, non-NULL Address structure previously created with address_new() @param b a valid, non-NULL Address structure previously created with address_new() @return TRUE if both addresses are NULL or if the IP associated with both addresses are equal, FALSE otherwise
- Create a new Address structure with the given IP and Hostname. The hostname is copied and stored internally, so the caller retains its ownership.
- Retrieve the host-order integer version of this address @param address a valid, non-NULL Address structure previously created with address_new() @return the host-order IP
- Retrieves the dot-and-decimal string representation of the host-order version of this address. The caller does not own and should not modify or free the string. @param address a valid, non-NULL Address structure previously created with address_new() @return an address pointing to the internal memory holding the string
- Retrieves the hostname of this address. The caller does not own and should not modify or free the string. @param address a valid, non-NULL Address structure previously created with address_new() @return an address pointing to the internal memory holding the string
- Retrieve the network-order integer version of this address @param address a valid, non-NULL Address structure previously created with address_new() @return the network-order IP
Type Aliases§
- An Address structure holds information used to identify nodes, allowing for easy extraction of both integer and string forms of an IP address as well as the string hostname associated with the IP. Address is an opaque structure and should only be accessed using the functions in this class.