Classes | Defines | Functions | Variables
smtp-multi.c File Reference
#include <string.h>
#include <curl/curl.h>
Include dependency graph for smtp-multi.c:

Go to the source code of this file.

Classes

struct  upload_status

Defines

#define CC   "<info@example.com>"
#define FROM   "<sender@example.com>"
#define MULTI_PERFORM_HANG_TIMEOUT   60 * 1000
#define TO   "<recipient@example.com>"

Functions

int main (void)
static size_t payload_source (void *ptr, size_t size, size_t nmemb, void *userp)
static long tvdiff (struct timeval newer, struct timeval older)
static struct timeval tvnow (void)

Variables

static const char * payload_text []

Define Documentation

#define CC   "<info@example.com>"

Definition at line 40 of file smtp-multi.c.

#define FROM   "<sender@example.com>"

Definition at line 38 of file smtp-multi.c.

#define MULTI_PERFORM_HANG_TIMEOUT   60 * 1000

Definition at line 42 of file smtp-multi.c.

#define TO   "<recipient@example.com>"

Definition at line 39 of file smtp-multi.c.


Function Documentation

int main ( void  )

Definition at line 103 of file smtp-multi.c.

static size_t payload_source ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  userp 
) [static]

Definition at line 64 of file smtp-multi.c.

static long tvdiff ( struct timeval  newer,
struct timeval  older 
) [static]

Definition at line 97 of file smtp-multi.c.

static struct timeval tvnow ( void  ) [static, read]

Definition at line 86 of file smtp-multi.c.


Variable Documentation

const char* payload_text[] [static]
Initial value:
 {
  "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
  "To: " TO "\r\n",
  "From: " FROM "(Example User)\r\n",
  "Cc: " CC "(Another example User)\r\n",
  "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
  "rfcpedant.example.org>\r\n",
  "Subject: SMTP multi example message\r\n",
  "\r\n", 
  "The body of the message starts here.\r\n",
  "\r\n",
  "It could be a lot of lines, could be MIME encoded, whatever.\r\n",
  "Check RFC5322.\r\n",
  NULL
}

Definition at line 44 of file smtp-multi.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09