ExitReason vs. Disconnect(string) (General questions)
I'm having a hard time figuring out how to send the correct ExitReason when calling Disconnect from a WOD SSH client.
Disconnect has three overloads, one without parametes, one with a bool and one with a string.
When I use the one with a string, on the receiving hand, the SSH server receives each time a different ExitReason, but nothing is inside ExitDescription, which remains null. When I change the value of the string, the ExitReason changes, but I cannot find a relationship between the string and the enum from the Server.
What I want is a way to know if a disconnection is actually a loss of connection or if it is the application shutting down.
Can you explain to me how?
Thanks
Martin
The programs are in C# and the two products we are using are
WOD ActiveX SSH Server 2.2.2
WOD SSH .NET 2.4.7
Re: ExitReason vs. Disconnect(string)
Martin,
I think I manage to duplicate your problem with sending string inside Disconnect Method. I have already forward it to our developers.
You should receive response from them when we have more about your issue.
Drazen
Re: ExitReason vs. Disconnect(string)
Martin,
I think I manage to duplicate your problem with sending string inside Disconnect Method. I have already forward it to our developers.You should receive response from them when we have more about your issue.
Drazen
Thanks!
Re: ExitReason vs. Disconnect(string)
Martin,
Hi. I have updated wodSSH.NET with the fix, would you be so kind to request the update and try it out?
Regards,
Kreso
Re: ExitReason vs. Disconnect(string)
Martin,
Hi. I have updated wodSSH.NET with the fix, would you be so kind to request the update and try it out?
Regards,
Kreso
Thanks, it fixed the problem!
The ExitReason is now correct and the text sent through Disconnect(string) from the client is placed in the ExitDescription on the server side.
Thank you so much for the quick fix!
Martin