Class | Net::SSH::Authentication::Pageant::Socket |
In: |
lib/net/ssh/authentication/pageant.rb
|
Parent: | Object |
This is the pseudo-socket implementation that mimics the interface of a socket, translating each request into a Windows messaging call to the pageant daemon. This allows pageant support to be implemented simply by replacing the socket factory used by the Agent class.
Create a new instance that communicates with the running pageant instance. If no such instance is running, this will cause an error.
Reads n bytes from the cached result of the last query. If n is nil, returns all remaining data from the last query.
Forwards the data to send_query, ignoring any arguments after the first. Returns 0.
Packages the given query string and sends it to the pageant process via the Windows messaging subsystem. The result is cached, to be returned piece-wise when read is called.