Initial value:= {
.name = "http",
.init = http_send_init,
.shutdown = http_shutdown,
.pre_monitor = http_pre_monitor,
.post_monitor = http_post_monitor,
.send = http_send,
.shutdown_clients = http_shutdown_clients,
.client_cmds = {
},
.status = http_status,
}
The HTTP sender.
This is the only sender which does not FEC-encode the stream. This is not necessary because HTTP sits on top of TCP, a reliable transport which retransmits lost packets automatically. The sender employs per-client queues which queue chunks of audio data if they can not be sent immediately because the write operation would block. Most methods of the sender are implemented as wrappers for the generic functions defined in send_common.c.