paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Variables
dccp_send.c File Reference

Paraslash's dccp sender. More...

#include <netinet/in.h>
#include <sys/socket.h>
#include <regex.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <netdb.h>
#include <lopsub.h>
#include "server.lsg.h"
#include "para.h"
#include "error.h"
#include "string.h"
#include "afh.h"
#include "net.h"
#include "server.h"
#include "list.h"
#include "sched.h"
#include "send.h"
#include "vss.h"
#include "fd.h"

Macros

#define DCCP_SOCKOPT_TX_CCID   14
 Set/get the TX CCID. More...
 
#define DCCP_SOCKOPT_GET_CUR_MPS   5
 Max packet size, RFC 4340, 14. More...
 
#define DCCP_MAX_HEADER   128
 Estimated worst-case length of a DCCP header including options. More...
 

Variables

const struct sender dccp_sender
 The DCCP sender. More...
 

Detailed Description

Paraslash's dccp sender.

Macro Definition Documentation

◆ DCCP_SOCKOPT_TX_CCID

#define DCCP_SOCKOPT_TX_CCID   14

Set/get the TX CCID.

◆ DCCP_SOCKOPT_GET_CUR_MPS

#define DCCP_SOCKOPT_GET_CUR_MPS   5

Max packet size, RFC 4340, 14.

◆ DCCP_MAX_HEADER

#define DCCP_MAX_HEADER   128

Estimated worst-case length of a DCCP header including options.

Variable Documentation

◆ dccp_sender

const struct sender dccp_sender
Initial value:
= {
.name = "dccp",
.init = dccp_send_init,
.shutdown = dccp_shutdown,
.pre_monitor = dccp_pre_monitor,
.post_monitor = dccp_post_monitor,
.shutdown_clients = dccp_shutdown_clients,
.client_cmds = {
[SENDER_on] = dccp_com_on,
[SENDER_off] = dccp_com_off,
[SENDER_deny] = dccp_com_deny,
[SENDER_allow] = dccp_com_allow,
},
.status = dccp_status,
}

The DCCP sender.

This sender offers congestion control not available in plain TCP. Most methods of the sender structure are implemented as simple wrappers for the generic functions defined in send_common.c. Like UDP streams, DCCP streams are sent FEC-encoded.

SENDER_on
@ SENDER_on
Activate the sender.
Definition: send.h:27
SENDER_off
@ SENDER_off
Deactivate the sender.
Definition: send.h:27
SENDER_allow
@ SENDER_allow
Allow connections from given IP address(es).
Definition: send.h:27
SENDER_deny
@ SENDER_deny
Deny connections from given IP address(es).
Definition: send.h:27
generic_sender_help
__malloc char * generic_sender_help(void)
Get the generic help text.
Definition: send_common.c:416