Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TcpWrapperConnection

[17:7] extends: object

A GTcpWrapperConnection can be used to wrap a [class@Gio.IOStream] that is based on a [class@Gio.Socket], but which is not actually a [class@Gio.SocketConnection]. This is used by [class@Gio.SocketClient] so that it can always return a [class@Gio.SocketConnection], even when the connection it has actually created is not directly a [class@Gio.SocketConnection].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • TcpWrapperConnection (base_io_stream = null, socket = null)

    Wraps @base_io_stream and @socket together as a #GSocketConnection.

    • @p base_io_stream is the #GIOStream to wrap.
    • @p socket is the #GSocket associated with @base_io_stream.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asTcpConnection ()

    Wraps this handle as TcpConnection.

    • @r A TcpConnection object.
  • get_base_io_stream ()

    Gets @conn's base #GIOStream

class: TcpWrapperConnectionMeta

[126:14] static extends: object

Generated metadata helpers for TcpWrapperConnection class surfaces.

Methods

  • properties ()

    Returns property metadata for TcpWrapperConnection.

    • @r A list.