![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Variables | |
void(* | sshSettings::funcPtrConnection )(sbyte4 connectionInstance) |
Respond to a synchronous channel opening. More... | |
void(* | sshSettings::funcPtrPostAccept )(sbyte4 connectionInstance, TCP_SOCKET tcpAcceptSocket) |
Initialize session data. More... | |
void(* sshSettings::funcPtrConnection) (sbyte4 connectionInstance) |
This function is invoked when a connection channel is opened.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
Additionally, the following flag must not be defined:
__ENABLE_MOCANA_SSH_ASYNC_SERVER_API__
connectionInstance | Connection instance returned from SSH_acceptConnection(). |
void(* sshSettings::funcPtrPostAccept) (sbyte4 connectionInstance, TCP_SOCKET tcpAcceptSocket) |
This function, which is invoked after a connection is accepted by the NanoSSH synchronous server, initializes session data.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
Additionally, the following flag must not be defined:
__ENABLE_MOCANA_SSH_ASYNC_SERVER_API__
connectionInstance | Connection instance returned from SSH_acceptConnection(). |
tcpAcceptSocket | Client socket to store in a cookie for later use. |