gSocketConnect(object, address, cancellable = NULL, .errwarn = TRUE)objectGSocket.addressGSocketAddress specifying the remote address.cancellableGCancellable or NULLTRUE if connected, FALSE on error.errorGError for error reporting, or NULL to ignore.address. For a connection-less socket it sets
the default address for gSocketSend and discards all incoming datagrams
from other sources.
Generally connection oriented sockets can only connect once, but
connection-less sockets can connect multiple times to change the
default address.
If the connect call needs to do network I/O it will block, unless
non-blocking I/O is enabled. Then G_IO_ERROR_PENDING is returned
and the user can be notified of the connection finishing by waiting
for the G_IO_OUT condition. The result of the connection can then be
checked with gSocketCheckConnectResult.
Since 2.22