Re: C++, stdout, and XInetd

From: Troy Melhase <troy@gci.net>
Date: Wed Apr 28 2004 - 20:40:02 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 28 April 2004 06:28 pm, Joshua Kugler wrote:
> I realize this is probably a sockets programming question, but I've googled
> and experimented, and still can't come up with anything.
>
> I am using Xinetd to implement a simple C++ program that outputs data to
> the client.

Which C++ library are you using?

That library should provide a notification if/when a client disconnects. If
your library exposes the socket as if it were an io stream or file
descriptor, there should be a method that you can call periodically to
determine the state of its connection.

(I'm extrapolating from experience with other languages that provide socket
functionality; I don't have direct experience with C++ socket programming).

- --
Troy Melhase, troy@gci.net
- --
I have sworn upon the altar of God eternal hostility against every form of
tyranny over the mind of man. - Thomas Jefferson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAkIcnY7QSTRCBoM4RAkz9AJ458Wy9PGc0LX52HSlQI7LCWfxAPQCgpdEC
AKaRplAQ+TUZMXjJROQhGRE=
=sqWw
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Apr 28 20:33:12 2004

This archive was generated by hypermail 2.1.8 : Wed Apr 28 2004 - 20:33:13 AKDT