Class: MClientAgent
- Inherits:
-
Object
- Object
- MClientAgent
- Defined in:
- lib/minitcp.rb
Class Method Summary collapse
Class Method Details
.run(host, port, &b) ⇒ Object
375 376 377 378 379 380 381 |
# File 'lib/minitcp.rb', line 375 def self.run(host,port,&b) me=MClientAgent.new MClient.run_continious(host,port,10_000) do |so| so.extend(SocketMessage) me.instance_eval { b.call(so) } end end |