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

Module Wrappers.Inet_socket_address

type t = [ `inet_socket_address | `socket_address | `object_ ] Gobject.obj
val new_ : [ `inet_address | `object_ ] Gobject.obj -> UInt16.t -> t

Create a new InetSocketAddress

val new_from_string : string -> int -> t

Create a new InetSocketAddress

val get_scope_id : t -> UInt32.t

Gets the `sin6_scope_id` field from @address, which must be an IPv6 address.

val get_port : t -> UInt16.t

Gets @address's port.

val get_flowinfo : t -> UInt32.t

Gets the `sin6_flowinfo` field from @address, which must be an IPv6 address.

val get_address : t -> [ `inet_address | `object_ ] Gobject.obj

Gets @address's #GInetAddress.