c# - How to use StreamSocket? -
i want know how use streamsocket in windows runtime, searched couldn't find way.
i need point, should start from? thanks
create streamsocketlistener , implement http server. know, browser request like:
get / http/1.1 host: yourphone connection: keep-alive
you can return list of links.
http/1.1 ok 200 content-lnegth: <number of bytes> content-type: text/html connection: keep-alive <html> <body> <a href="/file1">file 1</a> ...
notice can receive connections , reply when app in foreground. when app suspended, connections frozen. accomplish this, may ask user stick around , show chipmunk dancing.
Comments
Post a Comment