haproxy/include
Willy Tarreau ac82540c35 [MEDIUM] stream_interface: store the target pointer and type
When doing a connect() on a stream interface, some information is needed
from the server and from the backend. In some situations, we don't have
a server and only a backend (eg: peers). In other cases, we know we have
an applet and we don't want to connect to anything, but we'd still like
to have the info about the applet being used.

For this, we now store a pointer to the "target" into the stream interface.
The target describes what's on the other side before trying to connect. It
can be a server, a proxy or an applet for now. Later we'll probably have
descriptors for multiple-stage chains so that the final information may
still be found.

This will help removing many specific cases in the code. It already made
it possible to remove the "srv" and "be" parameters to tcpv4_connect_server().
2011-03-10 23:32:15 +01:00
..
common [CLEANUP] hash: move the avalanche hash code globally available 2010-11-29 07:28:16 +01:00
import
proto [MEDIUM] stream_interface: store the target pointer and type 2011-03-10 23:32:15 +01:00
types [MEDIUM] stream_interface: store the target pointer and type 2011-03-10 23:32:15 +01:00