How do I redirect server's standard output to socket?
I made two process. One is use for a socket server in remote host, the
other is client.
Socket server includes a big library and will be run in the background,
and client program has GUI with Qt library.
I want server standard output to redirect to client program.
To do it I tried to use dup2() function, following
dup2( socket_descriptor, 1 ); // standard out to socket
dup2( sokcet_descriptor, 2 ); // standard err to socket
Then, write( 1, "message\n", 8 ) works good.
The string, "message" displayed in the client program.
But printf( "message\n" ) does not work.
How do I redirect server's standard output to socket?
Please let me know.
.
Relevant Pages
- Re: Creating Tapi Web Application
... socket server application talking to a 3rd party TAPI driver. ... client would be a Java applet. ... The Java applet should only use up to Java ... anywhere in the world that you can communicate with the socket server. ... (microsoft.public.win32.programmer.tapi) - Re: How do I redirect servers standard output to socket?
... One is use for a socket server in remote host, ... > and client program has GUI with Qt library. ... > I want server standard output to redirect to client program. ... Either tell the stdio library to force the buffer out when ... (comp.unix.solaris) - Re: How do I redirect servers standard output to socket?
... One is use for a socket server in remote host, ... > and client program has GUI with Qt library. ... > I want server standard output to redirect to client program. ... (comp.unix.solaris) - Re: supressing errors
... > My script implements a socket server. ... When a client connects and an error ... wrap as needed but you asked about blanket coverage. ... There is no way I recall just now to make Tcl just ignore errors. ... (comp.lang.tcl) - How do I redirect servers standard output to socket?
... Socket server includes a big library and will be run in the background, ... and client program has GUI with Qt library. ... I want server standard output to redirect to client program. ... (comp.unix.solaris) |
|