Class TcpWrapperConnection

All Implemented Interfaces:
PointerInterface

public class TcpWrapperConnection extends TcpConnection
A #GTcpWrapperConnection can be used to wrap a #GIOStream that is
based on a #GSocket, but which is not actually a
#GSocketConnection. This is used by #GSocketClient so that it can
always return a #GSocketConnection, even when the connection it has
actually created is not directly a #GSocketConnection.

https://docs.gtk.org/gio/class.TcpWrapperConnection.html

  • Constructor Details

    • TcpWrapperConnection

      public TcpWrapperConnection(PointerContainer pointer)
    • TcpWrapperConnection

      public TcpWrapperConnection(@Nonnull IOStream base_io_stream, @Nonnull Socket socket)
      Wraps @base_io_stream and @socket together as a #GSocketConnection.
      Parameters:
      base_io_stream - the #GIOStream to wrap
      socket - the #GSocket associated with @base_io_stream
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getBaseIoStream

      public IOStream getBaseIoStream()
      Gets @conn's base #GIOStream
      Returns:
      @conn's base #GIOStream
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()