PadicoTM

Documentation

« back to PM2 home.
component: SocketFactory_Reverse_Forward- Socket factory which builds a socket in

the reverse way. More...

Data Structures

struct  sfrfw_status_s
 instance of SocketFactory-reverse-forward More...
 

Variables

static const struct padico_socketfactory_s sfrfw_sf_driver
 'SocketFactory' facet for SocketFactory-reverse-forward
 
static const struct puk_component_driver_s sfrfw_component_driver
 instanciation facet for SocketFactory-reverse-forward
 

Detailed Description

the reverse way.

client -> server becomes :

client <- gateway -> server

Variable Documentation

◆ sfrfw_component_driver

const struct puk_component_driver_s sfrfw_component_driver
static
Initial value:
=
{
.instantiate = &sfrfw_instantiate,
.destroy = &sfrfw_destroy
}
static void sfrfw_destroy(void *)
Definition sf-rfw.c:178
static void * sfrfw_instantiate(puk_instance_t, puk_context_t)
Definition sf-rfw.c:165

instanciation facet for SocketFactory-reverse-forward

Definition at line 74 of file sf-rfw.c.

Referenced by sfrfw_module_init().

◆ sfrfw_sf_driver

const struct padico_socketfactory_s sfrfw_sf_driver
static
Initial value:
=
{
.create = &sfrfw_create,
.bind = NULL,
.listen = NULL,
.connect = &sfrfw_connect,
.close = &sfrfw_close,
}
return NULL
Definition Shm.h:88
static int sfrfw_close(void *_status)
Definition sf-rfw.c:312
static int sfrfw_connect(void *_status, const struct sockaddr *_addr, socklen_t addrlen, padico_socketfactory_connector_t notifier, void *key)
Definition sf-rfw.c:203
static int sfrfw_create(void *_status, int family, int type, int protocol)
Definition sf-rfw.c:188

'SocketFactory' facet for SocketFactory-reverse-forward

Definition at line 58 of file sf-rfw.c.

Referenced by sfrfw_module_init().