Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
WebConnection Struct Reference

A Connection that uses http(s) communication. More...

#include <connection.h>

Inheritance diagram for WebConnection:
[legend]
Collaboration diagram for WebConnection:
[legend]

Data Fields

Connection wc_base
 The base Connection. More...
 
CurlToolwc_curl_p
 The CurlTool that encapsulates the web-based calls. More...
 
char * wc_uri_s
 The URI that the WebConnection is to. More...
 
- Data Fields inherited from Connection
uint32 co_id
 The internal id for this Connection. More...
 
ConnectionType co_type
 The ConnectionType for this Connection. More...
 

Additional Inherited Members

- Public Member Functions inherited from Connection
ConnectionAllocateWebServerConnection (const char *const full_uri_s, CurlMode curl_mode)
 Allocate a WebConnection to a Server. More...
 
ConnectionAllocaterRawClientConnection (int server_socket_fd)
 Allocate a RawConnection to a Client. More...
 
const char * GetConnectionData (Connection *connection_p)
 Get the data stored in a Connection's buffer. More...
 
void FreeConnection (Connection *connection_p)
 Free a Connection. More...
 
const char * MakeRemoteJsonCallViaConnection (Connection *connection_p, const json_t *req_p)
 Send JSON-based data over a Connection. More...
 
bool SetConnectionCredentials (Connection *connection_p, const char *username_s, const char *password_s)
 
json_t * CallServices (json_t *client_results_p, const User *user_p, Connection *connection_p)
 Make a call from a Client to a Server. More...
 
struct ConnectionAllocateRawServerConnection (const char *const hostname_s, const char *const port_s)
 Allocate a RawConnection to a Server. More...
 

Detailed Description

A Connection that uses http(s) communication.

Field Documentation

◆ wc_base

Connection wc_base

The base Connection.

◆ wc_curl_p

CurlTool* wc_curl_p

The CurlTool that encapsulates the web-based calls.

◆ wc_uri_s

char* wc_uri_s

The URI that the WebConnection is to.


The documentation for this struct was generated from the following file: