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
|
static |
Initial value:
=
{
.instantiate = &sfrfw_instantiate,
.destroy = &sfrfw_destroy
}
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
|
static |
Initial value:
=
{
.create = &sfrfw_create,
.bind = NULL,
.listen = NULL,
.connect = &sfrfw_connect,
.close = &sfrfw_close,
}
@ padico_vsock_caps_directconnect
don't attempt to send an assembly request- directconnect only (through real sockets)
Definition VLink-API.h:179
@ padico_vsock_caps_clientonly
only usable as client- no server-side implementation
Definition VLink-API.h:183
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().