connection

connection — Manage connections work.

Synopsis




void        uc_conn_init                    (void);
GArray*     uc_server_get_response          (const gchar *proto,
                                             gchar *host,
                                             const guint port,
                                             gchar *buffer);

Description

Details

uc_conn_init ()

void        uc_conn_init                    (void);

Initialize connections


uc_server_get_response ()

GArray*     uc_server_get_response          (const gchar *proto,
                                             gchar *host,
                                             const guint port,
                                             gchar *buffer);

Connect to a host:port, send a HTTP request and return the content of the HTTP response.

proto : The protocol.
host : The host.
port : The port.
buffer : The HTTP request to send.
Returns : Content of the HTTP response.