Class TcpConnection

All Implemented Interfaces:
PointerInterface
Direct Known Subclasses:
TcpWrapperConnection

public class TcpConnection extends SocketConnection
This is the subclass of #GSocketConnection that is created
for TCP/IP sockets.

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

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getGracefulDisconnect

      public boolean getGracefulDisconnect()
      Checks if graceful disconnects are used. See
      g_tcp_connection_set_graceful_disconnect().
      Returns:
      %TRUE if graceful disconnect is used on close, %FALSE otherwise
    • setGracefulDisconnect

      public void setGracefulDisconnect(boolean graceful_disconnect)
      This enables graceful disconnects on close. A graceful disconnect
      means that we signal the receiving end that the connection is terminated
      and wait for it to close the connection before closing the connection.

      A graceful disconnect means that we can be sure that we successfully sent
      all the outstanding data to the other end, or get an error reported.
      However, it also means we have to wait for all the data to reach the
      other side and for it to acknowledge this by closing the socket, which may
      take a while. For this reason it is disabled by default.
      Parameters:
      graceful_disconnect - Whether to do graceful disconnects or not
    • 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()