Getting disconnected automatically when large text (wodSSH / wodSSH.NET)
Im facing a issue with OCX version. When a large text is returned (ByteCount = 26984 is last Received) it shows half data and then disconnects automatically.
Below is code i did. Am i missing something or doing something wrong, Kindly reply asap.
owtn.TerminalEmulation = 2;
owtn.AutoSize = true;
owtn.BackColor = &H000000 ;
owtn.ForeColor = &HFFFFFF ;
owtn.Columns = 120;
owtn.Rows = 30;
owtn.Enabled = true;
owtn.ShowCursor = true;
function doConnect () {
if (owtn.State == 0) {
owtn.Clear();
owtn.Protocol = 4;
owtn.Login = document.getElementById( tnetuser ).value;
owtn.Password = document.getElementById( tnetpass ).value;
owtn.Hostname = lip;
owtn.Port = sstlp;
owtn.BorderVisible = false;
owtn.AutoSize = true;
owtn.KeepAlives = 20;
owtn.Timeout = 0;
owtn.Connect ();
}
}
function dodisConnect () {
owtn.Clear();
owtn.Disconnect ();
}
<script for= owtn event= statechange() language= JavaScript >
showtnstatus(owtn.StateText(owtn.State));
</script>
<script for= owtn event= Connected(ErrorCode, ErrorText) language= JavaScript >
document.getElementById( tdconstr ).style.display = ;
document.getElementById( tconstr ).style.display = none ;
</script>
<script for= owtn event= Disconnected() language= JavaScript >
alert(owtn.ExitSignal);
document.getElementById( tdconstr ).style.display = none ;
document.getElementById( tconstr ).style.display = ;
</script>
<script for= owtn event= Received(ByteCount, Handled) language= JavaScript >
alert(ByteCount);
Handled = true;
</script>
<script for= owtn event= PromptReceived() language= JavaScript >
showtnstatus( Prompt Recd );
</script>
Complete thread:
- Getting disconnected automatically when large text - Pradeep Nair, 2010-07-07, 17:51
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-07, 20:09
- Re: Getting disconnected automatically when large - Pradeep Nair, 2010-07-07, 21:49
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-08, 00:15
- Re: Getting disconnected automatically when large - Pradeep Nair, 2010-07-08, 09:14
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-08, 10:03
- Re: Getting disconnected automatically when large - Pradeep Nair, 2010-07-08, 10:36
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-08, 10:03
- Re: Getting disconnected automatically when large - Pradeep Nair, 2010-07-08, 09:14
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-08, 00:15
- Re: Getting disconnected automatically when large - Pradeep Nair, 2010-07-07, 21:49
- Re: Getting disconnected automatically when large - woddrazen, 2010-07-07, 20:09