]> git.tuebingen.mpg.de Git - paraslash.git/commit
Sender code consolidation, on/off commands for the dccp sender.
authorAndre Noll <maan@systemlinux.org>
Sat, 16 Feb 2008 14:33:50 +0000 (15:33 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 16 Feb 2008 14:33:50 +0000 (15:33 +0100)
commitbc8187d6a4ca3191b3c54226ba54e4f0c4cf4e6e
treef24fe57bc45347ae4d6126b9afd2940e86e8f29b
parent7d30b7e68ff5219312622d6b5c3c2b8e8866585d
Sender code consolidation, on/off commands for the dccp sender.

This patch moves a bunch of code from the http sender to
send_common.c to make it available also for the dccp sender.

To this aim a new structure sender_status is introduced which
holds the configuration and the current status of the http/dccp
sender. Most of the new functions in send_common.c take a pointer
to such a structure.

This allows to implement the off/on/allow/deny/info commands
as a one-liner for both the dccp and the http sender.

The new server config option dccp_max_clients allows to restrict the
number of simultaneous connections to the dccp sender.
dccp_send.c
http_send.c
ortp_send.c
send.h
send_common.c
server.ggo