package ocgtk

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

Class Socket.socket

inherit Ocgtk_gio__.GDatagram_based.datagram_based_t
inherit Ocgtk_gio__.GInitable.initable_t
method accept : Ocgtk_gio__.GCancellable.cancellable_t option -> (Ocgtk_gio__.GSocket_and__socket_connection.socket_t, GError.t) result
method bind : Ocgtk_gio__.GSocket_address_and__socket_address_enumerator_and__socket_connectable.socket_address_t -> bool -> (bool, GError.t) result
method check_connect_result : unit -> (bool, GError.t) result
method close : unit -> (bool, GError.t) result
method connect : Ocgtk_gio__.GSocket_address_and__socket_address_enumerator_and__socket_connectable.socket_address_t -> Ocgtk_gio__.GCancellable.cancellable_t option -> (bool, GError.t) result
method connection_factory_create_connection : unit -> Ocgtk_gio__.GSocket_and__socket_connection.socket_connection_t
method get_available_bytes : unit -> int
method get_blocking : unit -> bool
method get_broadcast : unit -> bool
method get_credentials : unit -> (Ocgtk_gio__.GCredentials.credentials_t, GError.t) result
method get_family : unit -> Ocgtk_gio__.Gio_enums.socketfamily
method get_fd : unit -> int
method get_keepalive : unit -> bool
method get_listen_backlog : unit -> int
method get_local_address : unit -> (Ocgtk_gio__.GSocket_address_and__socket_address_enumerator_and__socket_connectable.socket_address_t, GError.t) result
method get_multicast_loopback : unit -> bool
method get_multicast_ttl : unit -> int
method get_protocol : unit -> Ocgtk_gio__.Gio_enums.socketprotocol
method get_remote_address : unit -> (Ocgtk_gio__.GSocket_address_and__socket_address_enumerator_and__socket_connectable.socket_address_t, GError.t) result
method get_socket_type : unit -> Ocgtk_gio__.Gio_enums.sockettype
method get_timeout : unit -> int
method get_ttl : unit -> int
method is_closed : unit -> bool
method is_connected : unit -> bool
method join_multicast_group : Ocgtk_gio__.GInet_address.inet_address_t -> bool -> string option -> (bool, GError.t) result
method join_multicast_group_ssm : Ocgtk_gio__.GInet_address.inet_address_t -> Ocgtk_gio__.GInet_address.inet_address_t option -> string option -> (bool, GError.t) result
method leave_multicast_group : Ocgtk_gio__.GInet_address.inet_address_t -> bool -> string option -> (bool, GError.t) result
method leave_multicast_group_ssm : Ocgtk_gio__.GInet_address.inet_address_t -> Ocgtk_gio__.GInet_address.inet_address_t option -> string option -> (bool, GError.t) result
method listen : unit -> (bool, GError.t) result
method receive_bytes : Gsize.t -> int64 -> Ocgtk_gio__.GCancellable.cancellable_t option -> (Glib_bytes.t, GError.t) result
method send_message : Ocgtk_gio__.GSocket_address_and__socket_address_enumerator_and__socket_connectable.socket_address_t option -> Ocgtk_gio__.Output_vector.t array -> int -> Ocgtk_gio__.Socket_control_message.t array option -> int -> int -> Ocgtk_gio__.GCancellable.cancellable_t option -> (int, GError.t) result
method set_blocking : bool -> unit
method set_broadcast : bool -> unit
method set_keepalive : bool -> unit
method set_listen_backlog : int -> unit
method set_multicast_loopback : bool -> unit
method set_multicast_ttl : int -> unit
method set_option : int -> int -> int -> (bool, GError.t) result
method set_timeout : int -> unit
method set_ttl : int -> unit
method shutdown : bool -> bool -> (bool, GError.t) result
method speaks_ipv4 : unit -> bool
method type_ : Ocgtk_gio__.Gio_enums.sockettype
method as_socket : Ocgtk_gio__.Socket_and__socket_connection.Socket.t