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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -