ExitReason vs. Disconnect(string) - WeOnlyDo Discussion board

ExitReason vs. Disconnect(string) (General questions)

by brem, Wednesday, April 14, 2010, 15:50 (5339 days ago)

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


Complete thread: