static liThrottleState* gnutls_tcp_throttle_in(liConnection *con) { mod_connection_ctx *conctx = con->con_sock.data; if (NULL == conctx) return NULL; if (NULL == conctx->sock_stream->throttle_in) conctx->sock_stream->throttle_in = li_throttle_new(); return conctx->sock_stream->throttle_in; }
static liThrottleState* simple_tcp_throttle_in(liConnection *con) { simple_tcp_connection *data = con->con_sock.data; if (NULL == data) return NULL; if (NULL == data->sock_stream->throttle_in) data->sock_stream->throttle_in = li_throttle_new(); return data->sock_stream->throttle_in; }
static liThrottleState* openssl_tcp_throttle_out(liConnection *con) { openssl_connection_ctx *conctx = con->con_sock.data; if (NULL == conctx) return NULL; if (NULL == conctx->sock_stream->throttle_out) conctx->sock_stream->throttle_out = li_throttle_new(); return conctx->sock_stream->throttle_out; }