View Single Post
Plugin Info:     Modification:          Category:          Approver:   Zenith77 (33)
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 11-23-2007 , 11:19   HTTP Server Lib :)
Reply With Quote #1

HTTP Server lib ...


This plugin allows to do a small HTTP server that manage ONLY text pages.
the default port of the server is 8081.

Principle: When you try to open a page (for example you try to open http://192.168.0.69:8081/players.html), the plugin accept the connection, call a forward. Each plugin with the forwarded function check if the request is for it, If yes the plugin set the content of the page.

There are two sample:

The first one just display a page when you try to open a file called about.txt

The second one is a page with AJAX, that display and refresh the ingame chat.


thks Alka



Required module: Sockets_hz

Attached Files
File Type: amxx httplib_chat_view.amxx (3.4 KB, 665 views)
File Type: sma Get Plugin or Get Source (httplib_chat_view.sma - 1593 views - 1.7 KB)
File Type: amxx httplib_sample.amxx (1.4 KB, 594 views)
File Type: sma Get Plugin or Get Source (httplib_sample.sma - 1706 views - 417 Bytes)
File Type: dll sockets_hz_amxx.dll (76.0 KB, 716 views)
File Type: inc sockets_hz.inc (2.2 KB, 685 views)
File Type: so sockets_hz_amxx_i386.so (10.6 KB, 469 views)
File Type: sma Get Plugin or Get Source (httplib.sma - 1726 views - 3.8 KB)
File Type: amxx httplib.amxx (6.8 KB, 452 views)
File Type: inc http_sys.inc (368 Bytes, 708 views)
__________________

Last edited by hackziner; 11-24-2007 at 08:08.
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner