Winsock API Webserver
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
Very unique code. This is the only Webserver on the internet that uses the Winsock api (and where the source code is downloadable!) I needed a simple webserver without the Winsock OCX for my game's server, for some easy remote-admin. That's why this code also has the Basic Authenticationscheme implented. The code is a bit messy, but it's been tough to get it working anyways. I hope you people enjoy this code and that you may learn something from it (That's why I put it online :)
-Supports images
-Checks if pages exists (does not return 404 though)
-Has Basic Authentication functionality (run it and you'll see it)
-Pretty secure I believe ("/../" won't work)
-Accepts multiple connections!
One drawback: The events are based on two command buttons. Yes, I'm sorry. but I just don't like AddressOfs, hooks, callbacks and whatever... they just are too crashy when you're beginning with something like this...
I used someones 2 class modules found on this site... I forgot the author of it. if anyone knows it, let me kow. Credit where credit is due :)
Anyway, enjoy!
Original Author: Almar Joling
Assumptions
Basic knowledge of the HTTP1.0/1.1 protocol, and how to connect to a local webserver (enter 127.0.0.1)
Returns
A freshly server HTML page
Side Effects
Using Winsock API is sometimes a very delicate job... be carefull what you change
API Declarations
38kb of Winsock declarations =-)
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 126 times
Categories
Attachments
Winsock_AP3573111172001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 23,220 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.