extern struct data_cb si_idle_conn_cb;
struct appctx *stream_int_register_handler(struct stream_interface *si, struct applet *app);
-void stream_int_unregister_handler(struct stream_interface *si);
void si_applet_done(struct stream_interface *si);
/* returns the channel which receives data from this stream interface (input channel) */
si->ops = &si_embedded_ops;
}
-static inline void si_detach(struct stream_interface *si)
-{
- si_release_endpoint(si);
-}
-
/* Turn a possibly existing connection endpoint of stream interface <si> to
* idle mode, which means that the connection will be polled for incoming events
* and might be killed by the underlying I/O handler.
return si_appctx(si);
}
-/* Unregister a stream interface handler. This must be called by the handler task
- * itself when it detects that it is in the SI_ST_DIS state.
- */
-void stream_int_unregister_handler(struct stream_interface *si)
-{
- si_detach(si);
-}
-
/* This callback is used to send a valid PROXY protocol line to a socket being
* established. It returns 0 if it fails in a fatal way or needs to poll to go
* further, otherwise it returns non-zero and removes itself from the connection's