Logo Search packages:      
Sourcecode: sofia-sip version File versions

su_proxy.c File Reference


Detailed Description

Transport level proxy demonstrating various su features.

For internal use only.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Wed May 23 17:42:40 2001 ppessi

Definition in file su_proxy.c.

#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <errno.h>
#include <assert.h>
#include "sofia-sip/su.h"
#include "sofia-sip/su_wait.h"
#include "sofia-sip/su_alloc.h"
#include "su_module_debug.h"

Go to the source code of this file.

Classes

struct  buffer_s
struct  forwarder_s
struct  proxy_s

Defines

#define __func__   "su_proxy"
#define SU_MSG_ARG_T   su_socket_t
#define SU_ROOT_MAGIC_T   proxy_t
#define SU_WAKEUP_ARG_T   forwarder_t

Typedefs

typedef struct buffer_s buffer_t
typedef struct forwarder_s forwarder_t
typedef struct proxy_s proxy_t

Functions

static int forwarder_accept (proxy_t *pr, su_wait_t *w, forwarder_t *f)
static int forwarder_append (forwarder_t *f, buffer_t *b0)
static void forwarder_close (forwarder_t *f1)
static int forwarder_connected (proxy_t *pr, su_wait_t *w, forwarder_t *f)
static forwarder_t * forwarder_create (proxy_t *pr)
static forwarder_t * forwarder_create_listener (proxy_t *pr, su_addrinfo_t *ai)
static void forwarder_deinit (forwarder_t *f)
void forwarder_destroy (forwarder_t *f)
static int forwarder_empty (proxy_t *pr, su_wait_t *w, forwarder_t *f)
static int forwarder_init_dgram (forwarder_t *f)
static int forwarder_init_stream (forwarder_t *f)
static int forwarder_recv (proxy_t *pr, su_wait_t *w, forwarder_t *f)
static int forwarder_send (proxy_t *pr, forwarder_t *f, buffer_t *b)
static int forwarder_shutdown (forwarder_t *f)
static int forwarder_stream_peer (proxy_t *pr, forwarder_t *f)
int main (int argc, char *argv[])
static int pr_config (proxy_t *pr, int argc, char *argv[])
static void pr_deinit (proxy_t *pr)
static int pr_init (proxy_t *pr)
static int pr_run (proxy_t *pr)
void usage (void)

Variables

char const help []


Generated by  Doxygen 1.6.0   Back to index