This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

http

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

http

Post by caesar »

I've seen the stats module and I was wondering how to to something like this: eggdrop opens on a ip and a port a connection for http and generates a web page. I would like to browse a web page generated by him on a link like this: somehost.com:4654. I have looked around and don't have a clue how to do so. I want to put him make a web page with the channel bans, users, status of the channels he sits on.. etc. Also if it's possible to make a user and password request firs based on his userfile. If there is such a tcl I can inspire from please drop a line. Thanks.
Once the game is over, the king and the pawn go back in the same box.
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

The closest I have seen to this is stats.mod's livestats - it lacks the login and channel ban info, but with a bit of work on the mod (if you know c well enough) I'm sure all this could be done.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Well, this is a problem. I don't knows c at all.. :)
Once the game is over, the king and the pawn go back in the same box.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You don't need C, you can make a tcl script to do it. Discover the "listen" command, or if you want straight tcl, the "socket" command.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

And where I can 'discover' this two? Tryied with the TCL manual also on the Discovery Channel :) and nothing..
Once the game is over, the king and the pawn go back in the same box.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

'listen' is in tcl command doc that comes with eggdrop. 'socket' is in tcl manual (www.tcl.tk)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Oups.. seems that I haven't looked in the right place for the 'listen' command. I've seen it been used by the eggdrop but I didn't knew that I'll need it. As for the 'socket' also didn't knew about it. Found it in th emanual and I'm reading as I finish to type and send this reply. :)

Thanks for the fill in.
Once the game is over, the king and the pawn go back in the same box.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Also, can you give me some examples of the 'socket' usage? Even an TCL is good..

About the 'listen' command, I've used it like this: 'listen 1088 script pub:http'. What kind of proc must be the 'pub:http'? I've seen another TCL that uses 'listen' and he used it for a bind for 'msg' as for the proc..
Once the game is over, the king and the pawn go back in the same box.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I promise you the information on "listen" is in tcl-commands.doc. Look at the "TCP CONNECTIONS" section for what kind of proc it has to be.

For the tcl example, my magical friend google found a nice tutorial. I searched for "tcl socket tutorial.' http://www.beedub.com/book/2nd/socket.doc.html#2397
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Another one that might interest you is http://www.tcl.tk/software/tclhttpd/

(it's a web server written in tcl)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Thank you and your magical friend 'google' :)
Once the game is over, the king and the pawn go back in the same box.
Locked