mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-18 08:32:17 +00:00
MINOR: protocol: add a new function accept_conn()
This per-protocol function will be used to accept an incoming connection and return it as a struct connection*. As such the protocol stack's internal representation of a connection will not need to be handled by the listener code.
This commit is contained in:
parent
7d053e4211
commit
1e509a7231
@ -94,6 +94,7 @@ struct protocol {
|
||||
void (*unbind)(struct listener *l); /* unbind the listener and possibly its receiver */
|
||||
int (*suspend)(struct listener *l); /* try to suspend the listener */
|
||||
int (*resume)(struct listener *l); /* try to resume a suspended listener */
|
||||
struct connection *(*accept_conn)(struct listener *l, int *status); /* accept a new connection */
|
||||
|
||||
/* functions acting on the receiver */
|
||||
void (*rx_enable)(struct receiver *rx); /* enable receiving on the receiver */
|
||||
|
Loading…
Reference in New Issue
Block a user