ekg/net.c File Reference

#include "ekg2-config.h"
#include <ekg/win32.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 "debug.h"
#include "dynstuff.h"
#include "net.h"
#include "plugins.h"
#include "sessions.h"
#include "xmalloc.h"
#include "srv.h"

Data Structures

struct  ekg_connect_data

Defines

#define __USE_POSIX
#define __USE_GNU

Functions

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 char * array_shift (char ***array)
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)

Define Documentation

#define __USE_GNU

#define __USE_POSIX


Function Documentation

static char* array_shift ( char ***  array  )  [static]

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

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

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

static void ekg_connect_data_free ( struct ekg_connect_data c  )  [static]

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

static int ekg_connect_loop ( struct ekg_connect_data c  )  [static]

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

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

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 
)

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


Generated on Sat Nov 22 22:30:43 2008 for ekg2 by  doxygen 1.5.1