I recommend you create a header/source pair that provides an interface to set up I/O for the rest of the client. In the client, have a function that takes connection parameters and returns a QTextStream* (or whatever's appropriate for your I/O.) Since Qt has versions on things other than *nix, you might start with the "Qt way" of connecting in the source file. Since the interface in the header hides that, however, you'd be free to switch to the "*nix way", or even local sockets and named pipes, later on if you wanted to.
Kevin Barry
|