Re: Console example - WeOnlyDo Discussion board

Re: Console example (General questions)

by wodSupport, Wednesday, January 03, 2007, 23:01 (3977 days ago) @ Hans

Hans,

don't forget that wodSSHServer lives in same thread as your app. At the moment you call gets() you freeze the thread waiting for keyboard input, and you don't allow wodSSHServer to gets its CPU slice to process incoming messages.

Result is that it will accept the connection but will not be able to make any kind of socket communication.

What you need to do is implement something similar to DoEvents. It means you should put message pump like

while (GetMessage())
{
TranslateMessage();
DispatchMessage();
}

so that messages are processed.

Hope this helps!

Kreso


Complete thread: