in reply to STDOUT and SWIG
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 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: STDOUT and SWIG
by rapier1 (Novice) on Aug 21, 2001 at 00:57 UTC | |
by tye (Sage) on Aug 21, 2001 at 22:59 UTC |