MEDIUM: stream-interface: provide a generic si_conn_send_cb callback

The connection send() callback is supposed to be generic for a
stream-interface, and consists in calling the lower layer snd_buf
function. Move this function to the stream interface and remove
the sock-raw and sock-ssl clones.
This commit is contained in:
Willy Tarreau
2012-08-20 15:09:53 +02:00
committed by Willy Tarreau
parent de5722c302
commit eecf6ca68a
3 changed files with 36 additions and 34 deletions

View File

@@ -41,6 +41,7 @@ int stream_int_shutr(struct stream_interface *si);
int stream_int_shutw(struct stream_interface *si);
void stream_int_chk_rcv_conn(struct stream_interface *si);
void stream_int_chk_snd_conn(struct stream_interface *si);
void si_conn_send_cb(struct connection *conn);
extern struct sock_ops stream_int_embedded;
extern struct sock_ops stream_int_task;