45 #define OFFSET(x) offsetof(UnixContext, x)
46 #define ED AV_OPT_FLAG_DECODING_PARAM|AV_OPT_FLAG_ENCODING_PARAM
51 {
"stream",
"Stream (reliable stream-oriented)", 0,
AV_OPT_TYPE_CONST, { .i64 = SOCK_STREAM }, INT_MIN, INT_MAX,
ED,
"type" },
52 {
"datagram",
"Datagram (unreliable packet-oriented)", 0,
AV_OPT_TYPE_CONST, { .i64 = SOCK_DGRAM }, INT_MIN, INT_MAX,
ED,
"type" },
53 {
"seqpacket",
"Seqpacket (reliable packet-oriented", 0,
AV_OPT_TYPE_CONST, { .i64 = SOCK_SEQPACKET }, INT_MIN, INT_MAX,
ED,
"type" },
70 s->
addr.sun_family = AF_UNIX;
96 unlink(s->
addr.sun_path);
112 ret = recv(s->
fd, buf, size, 0);
126 ret = send(s->
fd, buf, size, 0);
134 unlink(s->
addr.sun_path);
153 .priv_data_class = &unix_class,