OpenFFmpeg
Classes | Macros | Typedefs | Variables
sctp.c File Reference

sctp url_protocol More...

#include <netinet/in.h>
#include <netinet/sctp.h>
#include "config.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"

Classes

struct  SCTPContext
 

Macros

#define OFFSET(x)   offsetof(SCTPContext, x)
 
#define D   AV_OPT_FLAG_DECODING_PARAM
 
#define E   AV_OPT_FLAG_ENCODING_PARAM
 

Typedefs

typedef struct SCTPContext SCTPContext
 

Variables

const URLProtocol ff_sctp_protocol
 

Detailed Description

sctp url_protocol

url syntax: sctp://host:port[?option=val...] option: 'listen' : listen for an incoming connection 'max_streams=n' : set the maximum number of streams 'reuse=1' : enable reusing the socket [TBD]

by setting the maximum number of streams the protocol will use the first two bytes of the incoming/outgoing buffer to store the stream number of the packet being read/written.

See also
sctp_read
sctp_write

Variable Documentation

§ ff_sctp_protocol

const URLProtocol ff_sctp_protocol
Initial value:
= {
.name = "sctp",
.url_open = sctp_open,
.url_read = sctp_read,
.url_write = sctp_write,
.url_close = sctp_close,
.url_get_file_handle = sctp_get_file_handle,
.priv_data_size = sizeof(SCTPContext),
.flags = URL_PROTOCOL_FLAG_NETWORK,
.priv_data_class = &sctp_class,
}
Definition: sctp.c:150