repo.or.cz
/
io
/
quag.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
[io/quag.git]
/
addons
/
AVCodec
/
samples
/
server.io
blob
0f0bb468d306e3d2d30860055e34f57577bb98bd
1
#!/
usr
/
bin
/
env io
2
3
4
Server
clone do
(
5
setPort
(
8000
)
6
handleSocket
:=
method
(
s
,
7
while
(
s streamReadNextChunk
,
8
writeln
(
s readBuffer
)
9
s readBuffer empty
10
)
11
)
12
)
start
13
14
//
http
://
localhost
:
8000
/
stream
/
1018
15