PQLR
Postquantum Crypto Library by QAPP
proxy.h File Reference
#include <pqlr/common/api.h>
#include <pqlr/common/pqlr.h>
#include "msgpack.h"
#include "msgpack/unpack.h"
#include "msgpack/object.h"

Go to the source code of this file.

Macros

#define LOG_ERROR(fmt, ...)    fprintf(stderr, "%s:%d: " fmt, __FILE__, __LINE__, __VA_ARGS__);
 

Functions

PQLR_API void pqlr_proxy_set_context (pqlr_t pqlr, const void *proxy_context)
 set context for proxy backend More...
 
void pqlr_proxy_context_free (pqlr_t pqlr)
 free proxy backend context More...
 
PQLR_API int pqlr_proxy_connect_to_server (const char *host, int port)
 Connect to server on port. More...
 
PQLR_API int pqlr_proxy_send_and_rcv (pqlr_t pqlr, int sockfd, const msgpack_sbuffer *msg, msgpack_unpacker *unp, msgpack_unpacked *und)
 Sends a packed message and blocks till gets a packed message in response, then unpacks it. More...
 

Macro Definition Documentation

◆ LOG_ERROR

#define LOG_ERROR (   fmt,
  ... 
)     fprintf(stderr, "%s:%d: " fmt, __FILE__, __LINE__, __VA_ARGS__);