Attempt to synchronously connect this to its remote address.
If cancellable
is non-%NULL, it can be used to cancel the connection, in which case connect_sync
will return CANCELLED.
this |
a client Socket (which must not already be connected) |
cancellable |
a Cancellable, or |
a success or failure code. |