For the Channel-A I am using
Code: Select all
Direct=True
NonBlocking=True,
DestHost=ScSSHServer Application IP Address
DestPot=ScSSHServer Listening Port
1a. when ScSSHClient Application wants to send a text message to the server, I call
Code: Select all
Channel-A.WriteString('My Message from Client');
2a. when the server decides to send a message to a particular client, it identifies an appropriate client-channel from ScSSHServer.ChannelInfos[] and send the text message by using the method:
Code: Select all
ScSSHServer.SendToClient(ScSSHServer.ChannelInfos[i], 'Message from the Server', 23);
Is this the right way to use it?
Thanks!