-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.TCPListener.StartListening
SSH.TCPListener.StartListening
Sub StartListening()
Instruct the SSH server to begin listening on its local network interface(s), identified by RemoteInterface, for inbound connections to RemotePort. If RemoteInterface=""
then the server will listen on all of its local interfaces. If RemotePort<=0
then the server will select a random ephemeral port to listen on, and the RemotePort
property will be updated accordingly.
You must periodically call the Poll() method to poll the listener for activity. If a connection is received then the ConnectionReceived() event will be raised. If an error occurs then the Error() event will be raised.
libssh2 will enqueue at most MaxConnections before refusing to accept new ones. Once a connection is passed to the ConnectionReceived()
event it is no longer counted against MaxConnections
.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.