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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -