API change of add_connection.
[silc.git] / lib / silcclient / README
index bfa8a0bbbd484c7f55ab393ed2f57ba26c8adde7..ab4b152192f5e151c314397f5015fb429c35c572 100644 (file)
@@ -129,10 +129,8 @@ After connection has been created application must call:
 
        SilcClientConnection conn;
 
-       /* Add new connection to client library */
-       conn = silc_client_add_connection(client, context);
-       conn->remote_host = hostname;
-       conn->remote_port = port;
+       /* Add new connection to client */
+       conn = silc_client_add_connection(client, hostname, port, context);
 
        /* Start key exchange and let the library handle everything
           after this point on. */