OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Mar 30, 2024 2:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 7:39 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 901
Location: Maadi, Cairo, Egypt
Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)

_________________
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 8:35 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Muazzam wrote:
SpyderTL wrote:
Muazzam wrote:
Printing hello world, the hard way!

I think you just summed up OS Development. :)

At least for me, network programming is harder than OS development. It (including a server and a browser) is a high-priority for my OS nonetheless.
I'm still thinking about how I'm going to implement networking... it's not high on my priority list, but I want to make sure that I get it right when I do it... I'll probably start with client-side stuff though (like a web browser, email client, etc.) rather than server stuff.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 9:17 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
You have to start with a range of NIC drivers and a TCP/IP stack. That's the difficult part; everything else is fairly routine programming.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 10:54 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
iansjack wrote:
You have to start with a range of NIC drivers and a TCP/IP stack. That's the difficult part; everything else is fairly routine programming.

When you put it that way, I'm kinda wondering why it took me like 6 months to get my first hello world response on a single VirtIO virtual network card. :)

EDIT: Make that 18 months... Man how time flies when you are reading specifications....

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 11:55 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
I'm guessing it's because you were doing the difficult part.

If it takes you 6 (or 18) months to program a simple web server or client on an existing OS, such as Linux, I can only answer what my Mathematics professor said when asked a question (which we all thought was pretty difficult): "Mr ______, have you ever thought of taking up plumbing for a living?".


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 2:22 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
I started writing a network stack on the bus during my commute. It seemed like a better use of time than sitting there bored.

I didn't have it running on my OS. Just a bunch of vtys and vim, and me typing out a whole lot of C. At best I'd see how it handles various captured and artificial input with userspace testing -- capture a real world packet in Wireshark, feed it into a test program for the stack, capture the output, toss it back into Wireshark, see if it looks right compared to a real world response.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 4:10 pm 
Offline
Member
Member

Joined: Thu Aug 20, 2015 9:02 pm
Posts: 28
omarrx024 wrote:
Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)


Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 4:20 pm 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 901
Location: Maadi, Cairo, Egypt
apamment wrote:
Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.

I'll try it now.

_________________
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Fri Jan 29, 2016 4:02 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
apamment wrote:
omarrx024 wrote:
Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)


Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.

Maybe you should host it on your own OS rather ;-) .

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Fri Jan 29, 2016 4:14 am 
Offline
Member
Member

Joined: Thu Aug 20, 2015 9:02 pm
Posts: 28
onlyonemac wrote:
Maybe you should host it on your own OS rather ;-) .


Haha, well given my OS doesn't have permissions at all, that might work :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group