External Web Server
Anthony Massa <[email protected]> Tue, 19 May 2009 10:48:16 -0700
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============6726516273717344833==
Content-Type: multipart/alternative;
boundary="------------050303000403050805090109"
This is a multi-part message in MIME format.
--------------050303000403050805090109
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I am trying to get UPnP support working on my Linux box (Fedora Core
5). I am using the thttpd web server so I don't need (or want) the web
server support included with pupnp/libupnp. What I want is for the
device to show up via UPnP on the client machine, but when the user
clicks on the device, the thttpd web server handles serving up the
appropriate pages, content, etc.
When I get the device to show up and click on it, the device ends up
trying to serve up http://192.168.1.101:49152/index.html. I think I
need to change the port so it goes to port 80 for the web server to
handle the requests...right?
If I try to disable the web server in UPnP the device never shows up in
the "My Network Places". I have moved the call to UpnpEnableWebserver
around, but it doesn't seem to allow the UPnP advertisement to work
properly if I have the call in there. Here are the calls into the UPnP
API I am using:
status = UpnpInit(ip_address, port);
status = UpnpEnableWebserver(0);
status = UpnpRegisterRootDevice2(UPNPREG_FILENAME_DESC,
"tvdevicedesc.xml",
0,
1,
&DeviceCallbackEventHandler,
NULL,
&device_handle);
status = UpnpSendAdvertisement(device_handle, 100);
Any help is appreciated to assist me in figuring out what I'm doing wrong.
Thanks.
--------------050303000403050805090109
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">
<font face="Arial">I am trying to get UPnP support working on my Linux
box (Fedora Core 5). I am using the thttpd web server so I don't need
(or want) the web server support included with pupnp/libupnp. What I
want is for the device to show up via UPnP on the client machine, but
when the user clicks on the device, the thttpd web server handles
serving up the appropriate pages, content, etc.<br>
<br>
When I get the device to show up and click on it, the device ends up
trying to serve up <a class="moz-txt-link-freetext"
href="http://192.168.1.101:49152/index.html">http://192.168.1.101:49152/index.html</a>.
I think I
need to change the port so it goes to port 80 for the web server to
handle the requests...right?<br>
<br>
If I try to disable the web server in UPnP the device never shows up in
the "My Network Places". I have moved the call to UpnpEnableWebserver
around, but it doesn't seem to allow the UPnP advertisement to work
properly if I have the call in there. Here are the calls into the UPnP
API I am using:<br>
<br>
status = UpnpInit(ip_address, port);<br>
<br>
status = UpnpEnableWebserver(0);<br>
<br>
status = UpnpRegisterRootDevice2(UPNPREG_FILENAME_DESC,<br>
"tvdevicedesc.xml",<br>
0,<br>
1,<br>
&DeviceCallbackEventHandler,<br>
NULL,<br>
&device_handle);<br>
<br>
<br>
status = UpnpSendAdvertisement(device_handle, 100);<br>
<br>
<br>
Any help is appreciated to assist me in figuring out what I'm doing
wrong.<br>
<br>
Thanks.<br>
<br>
</font>
</div>
</body>
</html>
--------------050303000403050805090109--
--===============6726516273717344833==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
--===============6726516273717344833==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
UPnP-SDK-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss
--===============6726516273717344833==--