package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.