Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Objective-C Web Server?

Objective-C Web Server?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
May 1, 2006, 01:00 PM
 
Hi,
I'm currently writing a task manager/to-do list program. I was thinking it would be nice to be able to run the program and use it normally, and then also have it be hosting a web page where new tasks could be entered as well. I know for instance gnump3d starts up its own web server. Does anyone know if there are any easy to use web servers I can drop into my program?

Thanks,
Gabe
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
May 1, 2006, 01:22 PM
 
apache is included with OSX...
     
Zimwy  (op)
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
May 1, 2006, 01:54 PM
 

thanks.

I've used webserver packages in C++ where you can do things like the following:

Code:
void HandlePage(WebserverRequest* req) { req->Output("<html>Hi!</html>"); } void Main() { Webserver my_web_server; my_web_server.register("/test", /* port */ 5900, HandlePage); }
where when you go to localhost:5900/test it will show you "hi!"

I was hoping for something like that.
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
May 1, 2006, 02:23 PM
 
If you really want to, you can look into Objective-C++ and see about integrating those packages into an Objective-C program.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
May 1, 2006, 02:25 PM
 
I'm not aware of anything like that in Obj-C. You could incorporate a server package written in another language, though.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Zimwy  (op)
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
May 1, 2006, 03:24 PM
 
Does anyone know what gnump3d uses? I tried looking at their online cvs repository but couldn't find the source in there.

Gabe
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
May 1, 2006, 03:48 PM
 
Glancing at the site, it looks like gnump3d is itself a server. It looks like Perl, Python and Ruby (included with OS X by default) all include rudimentary HTTP server classes that you could easily bend to your needs if you want one of those. The only one I'm really familiar with is Ruby's WEBrick, but I'm sure they're all similar.
(Last edited by Chuckit; May 1, 2006 at 03:58 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2