connection

connection — Manage connections work.

Functions

Description

Functions

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,
                        gchar **ip);

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

Parameters

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.

Types and Values