connectEvent

fun connectEvent(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (event: SocketClientEvent, connectable: SocketConnectable, connection: IoStream?) -> Unit): <Error class: unknown class>

Emitted when @client's activity on @connectable changes state. Among other things, this can be used to provide progress information about a network connection in the UI. The meanings of the different @event values are as follows:

  • %G_SOCKET_CLIENT_RESOLVING: @client is about to look up @connectable in DNS. @connection will be null.

  • %G_SOCKET_CLIENT_RESOLVED: @client has successfully resolved

Since

2.32

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: event the event that is occurring; connectable the #GSocketConnectable that @event is occurring on; connection the current representation of the connection