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/Network_address/index.html

Module Wrappers.Network_address

type t = [ `network_address | `object_ ] Gobject.obj
val new_ : string -> UInt16.t -> t

Create a new NetworkAddress

val new_loopback : UInt16.t -> t

Create a new NetworkAddress

val get_scheme : t -> string option

Gets @addr's scheme

val get_port : t -> UInt16.t

Gets @addr's port number

val get_hostname : t -> string

Gets @addr's hostname. This might be either UTF-8 or ASCII-encoded, depending on what @addr was created with.