Created
August 5, 2016 16:42
-
-
Save anonymous/1b5d4ece61f475df9722930d1bf1ce11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Server { | |
static public function main() { | |
var s = new sys.net.Socket(); | |
s.bind(new sys.net.Host("localhost"), 5000); | |
s.listen(1); | |
var client:sys.net.Socket = s.accept(); | |
client.write("hello"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment