Macros | Functions
externalsocket.c File Reference
#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>
Include dependency graph for externalsocket.c:

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)
 

Macro Definition Documentation

#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.

Function Documentation

static int closecb ( void *  clientp,
curl_socket_t  item 
)
static

Definition at line 61 of file externalsocket.c.

int main ( void  )

Definition at line 91 of file externalsocket.c.

static curl_socket_t opensocket ( void *  clientp,
curlsocktype  purpose,
struct curl_sockaddr address 
)
static

Definition at line 68 of file externalsocket.c.

static int sockopt_callback ( void *  clientp,
curl_socket_t  curlfd,
curlsocktype  purpose 
)
static

Definition at line 81 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.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17