<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Kevin P. Fleming wrote:
<blockquote cite="mid4646380B.8020509@digium.com" type="cite">
<pre wrap="">Vadim Lebedev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">However in case of simple bridging it's simply an overhead of 2 file
descriptors (one pipe)
</pre>
</blockquote>
<pre wrap=""><!---->
Not quite; pipes are unidirectional (they are not sockets), so any
bridge to connect two sockets would require two pipes.
</pre>
</blockquote>
I beleive you are mistaken, the pipe syscals creates 2 file
descirptors, one for reading other for writing....<br>
so in worst case you need 2 pipes meaning 4 fds<br>
so first you splice to a write side of first pipe from a socket, then
optioanlly in case of montiored stream<br>
tee form read side of the first pipe to the write side of the second
pipe,<br>
then splice from write side of the first pipe to the target socket,
then read from the read side of the second pipe<br>
to perfrom monitoring<br>
<br>
Thanks<br>
Vadim<br>
<br>
<br>
<br>
<blockquote cite="mid4646380B.8020509@digium.com" type="cite">
<pre wrap="">_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a>
</pre>
</blockquote>
</body>
</html>