Em Thu, Nov 01, 2007 at 11:26:10AM -0300, Łeandro Sales escreveu: > Hi all, > I want to share a same socket-fd between two process using dccp. > The gstreamer plugin architecture uses a concept of sink and src (each > one named element), where sink send and src receive data. In this > case, one of then connects and inform the file descriptor to the > other. Then I thought that if I just share the socket_fd the things > will work, but it didn't. I need something like this: > > On dccp_server_sink_element: > > 1 - sock_fd = socket(...); // sock_id == 10 (for instance), sink tell > dccp_server_src_element this value > 2 - bind(sock_fd); > 3 - listen(sock_fd); > > On dccp_server_src_element: > > 1 - sock_fd = 10 // for the first version I will just pass this value > via set property, but after I will use unix_socket (as suggested by > Arnaldo) to communicate both elements You _have_ to use unix sockets to pass the fd. fd 10 on one process has absolutely nothing to do with fd 10 on another process, only if both were created by the same parent, but from your description it doesn't seems to be the case. - Arnaldo - To unsubscribe from this list: send the line "unsubscribe dccp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html