How to create a http server?

32 views
Skip to first unread message

zzwwk...@gmail.com

unread,
Jul 20, 2015, 4:32:26 AM7/20/15
to native-cli...@googlegroups.com
Could any body tell me  how to create a http server?
And can I send httpRequest to this server from web?
Appreciate if any demo be given!
Thanks!

Sam Clegg

unread,
Jul 20, 2015, 11:21:25 AM7/20/15
to native-cli...@googlegroups.com
As far as I know the only way to build an http server in Native Client
(or chrome in general) is to create a packaged app and use the TCP
socket API.

There are several http servers in naclports that have already been
ported. For example: mongoose. If you build mongoose in naclports in
will publish and example page that will act as a webserver.

And yes, the web server (like any web server) can be used by the
URLLoader to in NaCl.

cheers,
sam
> --
> You received this message because you are subscribed to the Google Groups
> "Native-Client-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to native-client-di...@googlegroups.com.
> To post to this group, send email to native-cli...@googlegroups.com.
> Visit this group at http://groups.google.com/group/native-client-discuss.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages