Interface ProxyInterface.OnConnect

Enclosing class:
ProxyInterface
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ProxyInterface.OnConnect
  • Method Details

    • onConnect

      IOStream onConnect(CallbackHandler __self, @Nonnull Proxy proxy, @Nonnull IOStream connection, @Nonnull ProxyAddress proxy_address, @Nullable Cancellable cancellable)
      Parameters:
      proxy - a #GProxy
      connection - a #GIOStream
      proxy_address - a #GProxyAddress
      cancellable - a #GCancellable
      Returns:
      a #GIOStream that will replace @connection. This might be the same as @connection, in which case a reference will be added.