Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created November 7, 2010 15:58
Show Gist options
  • Save wandernauta/666199 to your computer and use it in GitHub Desktop.
Save wandernauta/666199 to your computer and use it in GitHub Desktop.
HTTPD by RockerMONO (duckinator) that compiles but doesn't run on Wander Nauta's 32-bit box
import net/ServerSocket
socket := ServerSocket new("0.0.0.0", 8000, true)
while(true) {
conn := socket accept()
conn out write("<html><body>Hello, from the ooc socket world!</body></html>")
conn close()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment