#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.
Macros | |
#define | INADDR_NONE 0xffffffff |
#define | IPADDR "127.0.0.1" |
#define | PORTNUM 80 |
Functions | |
static int | closecb (void *clientp, curl_socket_t item) |
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.
|
static |
Definition at line 61 of file externalsocket.c.
int main | ( | void | ) |
Definition at line 91 of file externalsocket.c.
|
static |
Definition at line 68 of file externalsocket.c.
|
static |
Definition at line 81 of file externalsocket.c.
Definition at line 55 of file externalsocket.c.