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

Classes | Defines | Typedefs | Functions | Variables

su_proxy.c File Reference

Transport level proxy demonstrating various su features. More...

#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"
Include dependency graph for su_proxy.c:

Go to the source code of this file.


struct  buffer_s
struct  forwarder_s
struct  proxy_s


#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


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


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_tforwarder_create (proxy_t *pr)
static forwarder_tforwarder_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)


char const help [] = "usage: su_proxy [-ntu] remotehost remoteport [localport]\n"

Detailed Description

Transport level proxy demonstrating various su features.

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

Definition in file su_proxy.c.

Generated by  Doxygen 1.6.0   Back to index