The funtion (swig wrapped remember) can send information to STDOUT. I want to take this and redirect STDOUT to various sockets. To do this I've tried a number of differeent methods including capturing STDOUT using IO::Scalar and tie, binding STDOUT to the socket using fileno and open STDOUT, ">&=$fd"; and so forth all to no avail.
I think I determined that the problem is that SWIG isn't actually piping its STDOUT back into perl's STDOUT. So I can do anything I like STDOUT in perl and it will have no effect because these environmental changes are not being inherited by the function/c API.
Does this sound likely? If so can anyone think of a way to get around this that doesn't involve rewriting the API?
Chris
In reply to STDOUT and SWIG by rapier1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |