Re: Problems with Demo / PortForwarding (General questions)
Okay, some bytes travel through the tunnel.
It exits in the else-clause of the asyncReceive Function:
[code] private void asyncReceive(IAsyncResult ar)
{
int i = 0;
try
{
i = socket1.EndReceive(ar);
}
catch (Exception)
{ }
if (i > 0)
{
// be sure that the component isn't still in the connecting procedure
while (ssh1.State > WeOnlyDo.Client.SSH.States.Disconnected && ssh1.State != WeOnlyDo.Client.SSH.States.Connected);
//if the connecting procedure resulted with disconnection, bail out
if (ssh1.State == WeOnlyDo.Client.SSH.States.Disconnected)
return;
ssh1.Send(socketbuffer, 0, i);
socket1.BeginReceive(socketbuffer, 0, socketbuffer.Length, System.Net.Sockets.SocketFlags.None, new AsyncCallback(asyncReceive), this);
}
else
ssh1.Disconnect();
}[/code]
Any idea what this could cause?
Complete thread:
- Problems with Demo / PortForwarding - Michael, 2010-02-09, 20:50
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-09, 21:12
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:21
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:40
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:56
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-09, 22:11
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 22:13
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 22:49
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-10, 00:08
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-10, 08:12
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-10, 10:11
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-10, 12:06
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-10, 12:19
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-10, 12:06
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-10, 10:11
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-10, 08:12
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-10, 00:08
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 22:49
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 22:13
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-09, 22:11
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:56
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:40
- Re: Problems with Demo / PortForwarding - Michael, 2010-02-09, 21:21
- Re: Problems with Demo / PortForwarding - woddrazen, 2010-02-09, 21:12