class

SurFTP::SessionRegistry

Inherits Reference < Object

Class methods

active_users
Source
deregister(username : String, session : LibSSH::SSHSession)
Source
kill(username : String) : Int32

Close the fd for each active session for this user. Closing the fd unblocks any blocking libssh call (sftp_get_client_message, ssh_message_get, etc.) in the connection thread, which then exits cleanly.

Source
register(username : String, session : LibSSH::SSHSession)
Source