 |
 |
Objective-C Web Server?
|
 |
|
 |
|
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status:
Offline
|
|
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
|
|
apache is included with OSX...
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status:
Offline
|
|

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
|
|
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
|
|
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'."
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status:
Offline
|
|
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
|
|
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'."
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|