mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
Remaining flags and associated functions are move in the conn-stream scope. These flags are added on the endpoint and not the conn-stream itself. This way it will be possible to get them from the mux or the applet. The functions to get or set these flags are renamed accordingly with the "cs_" prefix and updated to manipualte a conn-stream instead of a stream-interface.
64 lines
2.1 KiB
C
64 lines
2.1 KiB
C
/*
|
|
* include/haproxy/stream_interface-t.h
|
|
* This file describes the stream_interface struct and associated constants.
|
|
*
|
|
* Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation, version 2.1
|
|
* exclusively.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _HAPROXY_STREAM_INTERFACE_T_H
|
|
#define _HAPROXY_STREAM_INTERFACE_T_H
|
|
|
|
#include <haproxy/api-t.h>
|
|
#include <haproxy/buf-t.h>
|
|
#include <haproxy/connection-t.h>
|
|
|
|
struct conn_stream;
|
|
|
|
/* flags set after I/O (32 bit) */
|
|
enum {
|
|
SI_FL_NONE = 0x00000000, /* nothing */
|
|
/* unused: 0x00000001, 0x00000002 */
|
|
SI_FL_ISBACK = 0x00000010, /* 0 for front-side SI, 1 for back-side */
|
|
};
|
|
|
|
/* A stream interface has 3 parts :
|
|
* - the buffer side, which interfaces to the buffers.
|
|
* - the remote side, which describes the state and address of the other side.
|
|
* - the functions, which are used by the buffer side to communicate with the
|
|
* remote side from the buffer side.
|
|
*/
|
|
|
|
/* Note that if an applet is registered, the update function will not be called
|
|
* by the session handler, so it may be used to resync flags at the end of the
|
|
* applet handler.
|
|
*/
|
|
struct stream_interface {
|
|
/* struct members used by the "buffer" side */
|
|
/* 16-bit hole here */
|
|
unsigned int flags; /* SI_FL_* */
|
|
struct conn_stream *cs; /* points to the conn-streams that owns the endpoint (connection or applet) */
|
|
};
|
|
|
|
#endif /* _HAPROXY_STREAM_INTERFACE_T_H */
|
|
|
|
/*
|
|
* Local variables:
|
|
* c-indent-level: 8
|
|
* c-basic-offset: 8
|
|
* End:
|
|
*/
|