From owner-freebsd-hackers Sat Mar 7 16:42:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA06352 for freebsd-hackers-outgoing; Sat, 7 Mar 1998 16:42:10 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA06068 for ; Sat, 7 Mar 1998 16:39:58 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id AAA18531; Sun, 8 Mar 1998 00:31:01 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199803080031.AAA18531@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Duncan Barclay cc: Brian Somers , freebsd-hackers@FreeBSD.ORG Subject: Re: Detecting state of PPP In-reply-to: Your message of "Sat, 07 Mar 1998 15:15:30 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 08 Mar 1998 00:31:00 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I plan to facilitate ``status'' connections soon. This ``status'' > > socket will be like a read-only diagnostic socket that pumps out > > information about the state of ppp periodically. It will allow a > > configurable number of connections. I'll probably do a little > > tcl program to show how it works too (but my tcl's not too good). > > I'll help here if you want. > > Could the status be done a bit like a > "daytime" service; just connect and it pumps out a string on demand and then > closes its end. Or, are you expecting to support a persistant connection > and the consumer just does blocking reads? I really want to allow heartbeat / throughput type monitors where the refresh rate is controlled by the server. Once the connection is established, it'll write information to the socket 'till the socket is closed. Pppctl will be smart enough to answer `one-off' type questions, or you can use something like `sed' to find a labeled piece of information then exit. > Also, can this be made none password protected for simple info? Ahh buts as it > read only this must be true. It'll be the same as the diagnostic socket in this respect - you can specify an empty password if you wish. > Duncan > > --- > ________________________________________________________________________ > Duncan Barclay | God smiles upon the little children, > dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned. > ________________________________________________________________________ -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message