artdaq_mfextensions  v1_05_00
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,
38  size_t payload_size);
39 
52 void send_message_ssl(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload,
53  size_t payload_size, const char* username, const char* pw, int disableVerify);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #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.