ekg2  GIT master
Struktury danych | Funkcje
Dokumentacja pliku net.c
#include "ekg2.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <netdb.h>
#include "net.h"
#include "srv.h"
Wykres zależności załączania dla net.c:

Struktury danych

struct  ekg_connect_data
 

Funkcje

static int ekg_resolver_split (char *hostname, const int defport)
 
watch_tekg_resolver4 (plugin_t *plugin, const char *server, watcher_handler_func_t async, void *data, const int proto_port, const int port, const int proto)
 
static void ekg_connect_data_free (struct ekg_connect_data *c)
 
static int ekg_connect_loop (struct ekg_connect_data *c)
 
static int ekg_connect_resolver_handler (int type, int fd, const char *watch, void *data)
 
static int ekg_build_sin (const char *data, const int defport, struct sockaddr **address, int *family)
 
static int ekg_connect_handler (int type, int fd, watch_type_t watch, void *data)
 
static int ekg_connect_abort (int type, int fd, watch_type_t watch, void *data)
 
watch_tekg_connect (session_t *session, const char *server, const int proto_port, const int port, watcher_handler_func_t async)
 
watch_tekg_resolver2 (plugin_t *plugin, const char *server, watcher_handler_func_t async, void *data)
 

Dokumentacja funkcji

◆ ekg_build_sin()

static int ekg_build_sin ( const char *  data,
const int  defport,
struct sockaddr **  address,
int *  family 
)
static

◆ ekg_connect()

watch_t* ekg_connect ( session_t session,
const char *  server,
const int  proto_port,
const int  port,
watcher_handler_func_t  async 
)

◆ ekg_connect_abort()

static int ekg_connect_abort ( int  type,
int  fd,
watch_type_t  watch,
void *  data 
)
static

◆ ekg_connect_data_free()

static void ekg_connect_data_free ( struct ekg_connect_data c)
static

◆ ekg_connect_handler()

static int ekg_connect_handler ( int  type,
int  fd,
watch_type_t  watch,
void *  data 
)
static

◆ ekg_connect_loop()

static int ekg_connect_loop ( struct ekg_connect_data c)
static

◆ ekg_connect_resolver_handler()

static int ekg_connect_resolver_handler ( int  type,
int  fd,
const char *  watch,
void *  data 
)
static

◆ ekg_resolver2()

watch_t* ekg_resolver2 ( plugin_t plugin,
const char *  server,
watcher_handler_func_t  async,
void *  data 
)

◆ ekg_resolver4()

watch_t* ekg_resolver4 ( plugin_t plugin,
const char *  server,
watcher_handler_func_t  async,
void *  data,
const int  proto_port,
const int  port,
const int  proto 
)

◆ ekg_resolver_split()

static int ekg_resolver_split ( char *  hostname,
const int  defport 
)
static