artdaq_mfextensions  v1_02_02
curl_send_message.h
Go to the documentation of this file.
1 #ifndef CURL_SEND_MESSAGE_H
2 #define CURL_SEND_MESSAGE_H 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 
22  {
23  size_t pos;
24  size_t size;
25  const char* payload;
26  };
27 
37  void send_message(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload, size_t payload_size);
38 
51  void send_message_ssl(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload, size_t payload_size, const char* username, const char* pw, int disableVerify);
52 
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif
size_t size
Size of payload.
void send_message_ssl(const char *dest, const char *to[], size_t to_size, const char *from, const char *payload, size_t payload_size, const char *username, const char *pw, int disableVerify)
Sends a message to the given SMTP server, using SSL encryption.
void send_message(const char *dest, const char *to[], size_t to_size, const char *from, const char *payload, size_t payload_size)
Sends a message to the given SMTP server.
const char * payload
payload string
size_t pos
Current position within payload.
Structure to track progress of upload in cURL send function.