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,
                                                         gboolean header_request);

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,
                                                         gboolean header_request);

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.

header_request :

TRUE if we need only to get the header

Returns :

Content of the HTTP response.