TrustCore SDK NanoSSH API reference  version 7.0
Sync Server Callbacks

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...
 

Detailed Description

Variable Documentation

◆ funcPtrConnection

void(* sshSettings::funcPtrConnection) (sbyte4 connectionInstance)

This function is invoked when a connection channel is opened.

Since
1.41
Version
1.41 and later

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__
Parameters
connectionInstanceConnection instance returned from SSH_acceptConnection().
Returns
None.

ssh.h

◆ funcPtrPostAccept

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.

Since
1.41
Version
1.41 and later

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__
Parameters
connectionInstanceConnection instance returned from SSH_acceptConnection().
tcpAcceptSocketClient socket to store in a cookie for later use.
Returns
None.

ssh.h