package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Inet_address/index.html

Module Wrappers.Inet_address

type t = [ `inet_address | `object_ ] Gobject.obj
val new_any : Gio_enums.socketfamily -> t

Create a new InetAddress

val new_from_string : string -> t

Create a new InetAddress

val new_loopback : Gio_enums.socketfamily -> t

Create a new InetAddress

val to_string : t -> string

Converts @address to string form.

val get_native_size : t -> Gsize.t

Gets the size of the native raw binary address for @address. This is the size of the data that you get from g_inet_address_to_bytes().

val get_is_site_local : t -> bool

Tests whether @address is a site-local address such as 10.0.0.1 (that is, the address identifies a host on a local network that can not be reached directly from the Internet, but which may have outgoing Internet connectivity via a NAT or firewall).

val get_is_multicast : t -> bool

Tests whether @address is a multicast address.

val get_is_mc_site_local : t -> bool

Tests whether @address is a site-local multicast address.

val get_is_mc_org_local : t -> bool

Tests whether @address is an organization-local multicast address.

val get_is_mc_node_local : t -> bool

Tests whether @address is a node-local multicast address.

Tests whether @address is a link-local multicast address.

val get_is_mc_global : t -> bool

Tests whether @address is a global multicast address.

val get_is_loopback : t -> bool

Tests whether @address is the loopback address for its family.

Tests whether @address is a link-local address (that is, if it identifies a host on a local network that is not connected to the Internet).

val get_is_any : t -> bool

Tests whether @address is the "any" address for its family.

val get_family : t -> Gio_enums.socketfamily

Gets @address's family

val equal : t -> t -> bool

Checks if two #GInetAddress instances are equal, e.g. the same address.