This file contains hidden or 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
| import sys.net.Host; | |
| import sys.net.Socket; | |
| class Client | |
| { | |
| public function new() | |
| { | |
| var args = Sys.args(); | |
| if (args.length==0) { | |
| trace('Usage: Client <server ip / hostname>'); |
This file contains hidden or 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 Main { | |
| static function main() { | |
| var signal = new Signal<Int,String>(); | |
| var conn = signal.connect(function(a, b) { | |
| trace('Well done $a $b'); | |
| }); | |
| signal.dispatch(10, "lol"); | |
| } | |
| } |