Class: Zeiger::Client
- Inherits:
-
Object
- Object
- Zeiger::Client
- Defined in:
- lib/zeiger/client.rb
Instance Method Summary collapse
Instance Method Details
#send(data) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/zeiger/client.rb', line 3 def send data Socket.unix(SOCKET_NAME) { |sock| s = YAML.dump(data) sock.write([s.bytesize].pack("I")) sock.write(s) while !sock.eof? puts sock.readline end } end |