imatix/zguide — pull request #199 by TvL2386 (2012-04-30 19:13:19+00:00)
Title: hwserver.rb/hwclient.rb bugfix to reflect the new ffi-rzmq API changes

Hi imatix,

I've fixed hwserver.rb and hwclient.rb to reflect the new ffi-rzmq API changes.
The output of the server and client are now:

```bash
$ ruby hwserver.rb
Starting Hello World server...
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"
Received request. Data: "Hello"

$ ruby hwclient.rb
Connecting to hello world server...
Sending request 0...
Received reply 0: [world]
Sending request 1...
Received reply 1: [world]
Sending request 2...
Received reply 2: [world]
Sending request 3...
Received reply 3: [world]
Sending request 4...
Received reply 4: [world]
Sending request 5...
Received reply 5: [world]
Sending request 6...
Received reply 6: [world]
Sending request 7...
Received reply 7: [world]
Sending request 8...
Received reply 8: [world]
Sending request 9...
Received reply 9: [world]
```

Regards,
Tom van Leeuwen

(BTW: This is my first pull request ever!)