Archived Forum Post

Index of archived forum posts

Question:

SSH library delay

Aug 09 '17 at 12:21

Hi, quick question, can I set a delay when executing commands through SSH C# Chilkat library? E.g send command, wait 350ms, send command, wait 350ms, etc., etc.


Answer

Chilkat provides a SleepMs method for convenience in some of the classes. For example, the Chilkat.Socket class has a SleepMs method.

In C# though, you can call System.Threading.Thread.Sleep (https://msdn.microsoft.com/en-us/library/system.threading.thread.sleep(v=vs.110).aspx)