#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <curl/curl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
Go to the source code of this file.
Defines | |
#define | INADDR_NONE 0xffffffff |
#define | IPADDR "127.0.0.1" |
#define | PORTNUM 80 |
Functions | |
int | main (void) |
static curl_socket_t | opensocket (void *clientp, curlsocktype purpose, struct curl_sockaddr *address) |
static int | sockopt_callback (void *clientp, curl_socket_t curlfd, curlsocktype purpose) |
static size_t | write_data (void *ptr, size_t size, size_t nmemb, void *stream) |
#define INADDR_NONE 0xffffffff |
Definition at line 52 of file externalsocket.c.
#define IPADDR "127.0.0.1" |
Definition at line 48 of file externalsocket.c.
#define PORTNUM 80 |
Definition at line 49 of file externalsocket.c.
int main | ( | void | ) |
Definition at line 84 of file externalsocket.c.
static curl_socket_t opensocket | ( | void * | clientp, |
curlsocktype | purpose, | ||
struct curl_sockaddr * | address | ||
) | [static] |
Definition at line 61 of file externalsocket.c.
static int sockopt_callback | ( | void * | clientp, |
curl_socket_t | curlfd, | ||
curlsocktype | purpose | ||
) | [static] |
Definition at line 74 of file externalsocket.c.
static size_t write_data | ( | void * | ptr, |
size_t | size, | ||
size_t | nmemb, | ||
void * | stream | ||
) | [static] |
Definition at line 55 of file externalsocket.c.