Commit e13932a4 authored by Jonathan Michalon's avatar Jonathan Michalon

rename client's bind_to as connect_to to be consistent with rest of code

parent 28e561ec
......@@ -16,7 +16,7 @@ public class Bot : OVCCClient.Client
int game_to_join = -1;
/* connect to the server */
yield bind_to (server);
yield connect_to (server);
/* login to the server, choosing an available nickname */
debug ("Trying to login...");
......@@ -184,15 +184,15 @@ ovccgtk_client_login_ready (GObject *object,
static void
ovccgtk_client_bind_to_ready (GObject *object,
ovccgtk_client_connect_to_ready (GObject *object,
GAsyncResult *result,
gpointer data)
GTask *task = data;
GError *error = NULL;
g_debug ("ovccclient_client_bind_to_finish()");
if (! ovccclient_client_bind_to_finish (OVCCCLIENT_CLIENT (object), result,
g_debug ("ovccclient_client_connect_to_finish()");
if (! ovccclient_client_connect_to_finish (OVCCCLIENT_CLIENT (object), result,
&error)) {
g_task_return_error (task, error);
g_object_unref (task);
......@@ -222,9 +222,9 @@ ovccgtk_client_join_async (OVCCGtkClient *self,
task = g_task_new (self, cancellable, callback, data);
g_debug ("ovccclient_client_bind_to()");
ovccclient_client_bind_to (OVCCCLIENT_CLIENT (self), server,
cancellable, ovccgtk_client_bind_to_ready, task);
g_debug ("ovccclient_client_connect_to()");
ovccclient_client_connect_to (OVCCCLIENT_CLIENT (self), server,
cancellable, ovccgtk_client_connect_to_ready, task);
......@@ -85,8 +85,8 @@ namespace OVCCClient
* @param cancellable a Cancellable object or null
* @return Whether connection was successful
public async bool bind_to (Server s,
Cancellable? cancellable = null)
public async bool connect_to (Server s,
Cancellable? cancellable = null)
throws Error
if (server != null) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment