Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » cmdsrv appears to not work
cmdsrv appears to not work [message #17911] Tue, 02 September 2008 21:24 Go to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi,

I am trying to write a simple webservice to act as part of a larger application and I figured that cmdsrv would be exactly what I am looking for as a starting point. However when I try to browse to the machine running cmdsrv it is never happy with the request. What is a good request please? At present I am trying

http://192.168.0.103:1536

as the address I am trying to browse to. I have tried running cmdsrv on XP and browsing from both XP and ubuntu and then I have tried cmdsrv on ubuntu and browsing from XP and ubuntu again and no response.

Firefox appears to know there is something there and waits but cmdsrv is never happy that a request has been made.

Perhaps an example of a well-formed request could be added to the example?

Nick
Re: cmdsrv appears to not work [message #18311 is a reply to message #17911] Mon, 22 September 2008 07:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
What exactly is "cmdsrv"?

I must admit the name reminds me something, but neither me or Tom are able to find sources Smile

Maybe you have meant "imgsrv"?

Mirek
Re: cmdsrv appears to not work [message #18312 is a reply to message #18311] Mon, 22 September 2008 09:12 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
HI Mirek, cmdsrv is an example of Http server(Simple HTTP text server) and you find it under "examples" assembly.

cdabbd745f1234c2751ee1f932d1dd75

[Updated on: Mon, 22 September 2008 09:13]

Report message to a moderator

Re: cmdsrv appears to not work [message #18314 is a reply to message #17911] Mon, 22 September 2008 13:28 Go to previous messageGo to next message
rylek is currently offline  rylek
Messages: 79
Registered: November 2005
Member
Hello!

Sorry for that. Cmdsrv is a very old utility derived from imgsrv as its console counterpart, i.e. a very rudimentary example of a http server. I completely forgot about it over the years and so it was not up to date with some other parts of the Http server hackery. I have just fixed it and sent it to the SVN repository.

Regards

Tomas
Re: cmdsrv appears to not work [message #18420 is a reply to message #18314] Mon, 29 September 2008 08:22 Go to previous messageGo to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Yeah I thought it would be useful as the base for a web-service. Glad I could remind you of it though Razz
Re: cmdsrv appears to not work [message #22400 is a reply to message #18314] Fri, 10 July 2009 12:29 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Tomas,

Please add line "server.DelayedWrite();" in package example "imgsrv":

GUI_APP_MAIN
{
..............
	while(!canceled) {
==>HERE		server.DelayedWrite();
		server.Wait(1000);
		if(server.IsError()) {
	


Without this line it not work!
Nice example, Thank you!
Re: cmdsrv appears to not work [message #22462 is a reply to message #22400] Fri, 17 July 2009 14:10 Go to previous message
rylek is currently offline  rylek
Messages: 79
Registered: November 2005
Member
Hi there!

Thanks, I've just fixed it.

Tomas
Previous Topic: cmdsrv does not work
Next Topic: Port giFT (a great but abandoned P2P project) to U++?
Goto Forum:
  


Current Time: Fri Apr 19 19:18:22 CEST 2024

Total time taken to generate the page: 0.03446 seconds