| CODENOTIFIER | HelpYou are not signed inSign in |
Project: rev
Revision: 240
Author: rogerdpack
Date: 01 Aug 2008 00:50:45
Changes:Diff:| ... | ...@@ -18,10 +18,18 @@ | |
| 18 | 18 | close |
| 19 | 19 | end |
| 20 | 20 | |
| 21 | def on_resolve_failed | |
| 22 | print "DNS resolve failed" | |
| 23 | end | |
| 24 | ||
| 25 | def on_connect_failed | |
| 26 | print "connect failed, meaning our connection to their port was rejected" | |
| 27 | end | |
| 28 | ||
| 21 | 29 | end |
| 22 | 30 | |
| 23 | 31 | event_loop = Rev::Loop.default |
| 24 | 32 | client = ClientConnection.connect(ADDR, PORT) |
| 25 | 33 | client.attach(event_loop) |
| 26 | puts "Echo client started to #{ADDR}:#{PORT}" | |
| 27 | event_loop.run | |
| 34 | puts "Echo client connecting to #{ADDR}:#{PORT}..." | |
| 35 | event_loop.run |