Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/Hello-world-Web-server/FunL/hello-world-web-server.funl
Normal file
13
Task/Hello-world-Web-server/FunL/hello-world-web-server.funl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
native java.io.PrintWriter
|
||||
native java.net.ServerSocket
|
||||
|
||||
val port = 8080
|
||||
val listener = ServerSocket( port )
|
||||
|
||||
printf( 'Listening at port %1$d\n', port )
|
||||
|
||||
forever
|
||||
socket = listener.accept()
|
||||
PrintWriter( socket.getOutputStream(), true ).println( 'hello world' )
|
||||
socket.shutdownOutput()
|
||||
socket.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue