multisocketsink and Gio.Socket() issues (python)
Krutskikh Ivan
stein.hak at gmail.com
Tue Mar 22 10:46:05 UTC 2016
Maybe something really stupid like:
sock = socket.socket()
client_id = Gio.Socket().new_from_fd(sock.fileno())
and so on...
2016-03-22 13:04 GMT+03:00 Krutskikh Ivan <stein.hak at gmail.com>:
> GSocket is just an API around normal sockets. But multisocketsink
>> requires sockets to be wrapped in a GSocket.
>
>
> Well, I was wondering because python has socket.socketpair element and
> Gio.Socket() does not. How can I wrap a socket in a GSocket then?
>
> 2016-03-22 12:50 GMT+03:00 Sebastian Dröge <sebastian at centricular.com>:
>
>> On Di, 2016-03-22 at 12:42 +0300, Krutskikh Ivan wrote:
>> > Thanks!
>> >
>> > Would this work with vanilla socket or I should stick with Gio.Socket
>> > ?
>>
>> GSocket is just an API around normal sockets. But multisocketsink
>> requires sockets to be wrapped in a GSocket.
>>
>> > I believe I can use socketpair to connect gstreamer multisocketsink
>> > to another gstreamer chain with socketsrc, am I right?
>>
>> Yes that should work
>>
>> --
>> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160322/e7c32726/attachment.html>
More information about the gstreamer-devel
mailing list