None of what you tried will work for C code. You need to dup() the socket onto file descriptor 1 (which is C's stdout) via:
you were close in one case but the "=" in your code causes STDOUT to be fdopen()ed to the existing file descriptor so that the socket does not get dup()ed. - tye (but my friends call me "Tye")open(STDOUT,">&$fd") or die ...
In reply to (tye)Re: STDOUT and SWIG
by tye
in thread STDOUT and SWIG
by rapier1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |