{"action":"opened","issue":{"url":"https://api.github.com/repos/d-theus/vncrec-ruby/issues/4","repository_url":"https://api.github.com/repos/d-theus/vncrec-ruby","labels_url":"https://api.github.com/repos/d-theus/vncrec-ruby/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/d-theus/vncrec-ruby/issues/4/comments","events_url":"https://api.github.com/repos/d-theus/vncrec-ruby/issues/4/events","html_url":"https://github.com/d-theus/vncrec-ruby/issues/4","id":150019219,"number":4,"title":"socket parameter","user":{"login":"MarioRuiz","id":459564,"avatar_url":"https://avatars.githubusercontent.com/u/459564?v=3","gravatar_id":"","url":"https://api.github.com/users/MarioRuiz","html_url":"https://github.com/MarioRuiz","followers_url":"https://api.github.com/users/MarioRuiz/followers","following_url":"https://api.github.com/users/MarioRuiz/following{/other_user}","gists_url":"https://api.github.com/users/MarioRuiz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarioRuiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarioRuiz/subscriptions","organizations_url":"https://api.github.com/users/MarioRuiz/orgs","repos_url":"https://api.github.com/users/MarioRuiz/repos","events_url":"https://api.github.com/users/MarioRuiz/events{/privacy}","received_events_url":"https://api.github.com/users/MarioRuiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T09:31:56Z","updated_at":"2016-04-21T09:31:56Z","closed_at":null,"body":"I'm using also the ruby-vnc library to perform actions on the vnc, it could be nice we could use the same socket connections for both... just passing the socket as a parameter\r\nthis is the library https://github.com/aquasync/ruby-vnc\r\nAnd it could be nice to use it like this:\r\n@vnc=Net::VNC.open host:\"192.168.20.30\" , password: 'xxxxxx'\r\n#some actions i want to perform with ruby-vnc and then:\r\nr = VNCRec::Recorder.new(filename: \"c:/temp/myvncsession.mp4\", socket: @vnc.socket)\r\nr.run\r\n#actions i want to record, using ruby-vnc\r\nr.stop\r\n@vnc.close\r\n\r\n\r\nI modified your code to try it out but it seems like it doesn't record anythig on the file that is created and when trying to close vnc i get this message on the ruby-vnc library:\r\n\r\n> exception in packet_reading_thread: Errno::ENOTSOCK:An operation was attempted on something that is not a socket.\r\nC:/Ruby22/lib/ruby/gems/2.2.0/gems/ruby-vnc-1.1.0/lib/net/vnc.rb:257:in `close': closed stream (IOError)\r\n\r\nI guess something is changed on the socket in your side\r\n\r\n"}}