Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7930 by zmatsuo, Fri Aug 9 13:36:46 2019 UTC revision 7931 by zmatsuo, Fri Aug 9 13:37:01 2019 UTC
# Line 6825  static void start_ssh_heartbeat_thread(P Line 6825  static void start_ssh_heartbeat_thread(P
6825    
6826          // TTSSHは thread-safe ではないのでスレッド内からのパケット送信は不可。(2007.12.26 yutaka)          // TTSSHは thread-safe ではないのでスレッド内からのパケット送信は不可。(2007.12.26 yutaka)
6827          thread = (HANDLE)_beginthreadex(NULL, 0, ssh_heartbeat_thread, pvar, 0, &tid);          thread = (HANDLE)_beginthreadex(NULL, 0, ssh_heartbeat_thread, pvar, 0, &tid);
6828          if (thread == (HANDLE)-1) {          if (thread == 0) {
6829                  // TODO:                  // TODO:
6830                    thread = INVALID_HANDLE_VALUE;
6831          }          }
6832          pvar->ssh_heartbeat_thread = thread;          pvar->ssh_heartbeat_thread = thread;
6833  }  }
# Line 8436  static void SSH2_scp_toremote(PTInstVar Line 8437  static void SSH2_scp_toremote(PTInstVar
8437                  }                  }
8438    
8439                  thread = (HANDLE)_beginthreadex(NULL, 0, ssh_scp_thread, c, 0, &tid);                  thread = (HANDLE)_beginthreadex(NULL, 0, ssh_scp_thread, c, 0, &tid);
8440                  if (thread == (HANDLE)-1) {                  if (thread == 0) {
8441                          // TODO:                          // TODO:
8442                            thread = INVALID_HANDLE_VALUE;
8443                  }                  }
8444                  c->scp.thread = thread;                  c->scp.thread = thread;
8445    
# Line 8697  static BOOL SSH2_scp_fromremote(PTInstVa Line 8699  static BOOL SSH2_scp_fromremote(PTInstVa
8699    
8700                          ssh2_scp_alloc_packetlist(c);                          ssh2_scp_alloc_packetlist(c);
8701                          thread = (HANDLE)_beginthreadex(NULL, 0, ssh_scp_receive_thread, c, 0, &tid);                          thread = (HANDLE)_beginthreadex(NULL, 0, ssh_scp_receive_thread, c, 0, &tid);
8702                          if (thread == (HANDLE)-1) {                          if (thread == 0) {
8703                                  // TODO:                                  // TODO:
8704                                    thread = INVALID_HANDLE_VALUE;
8705                          }                          }
8706                          c->scp.thread = thread;                          c->scp.thread = thread;
8707                          c->scp.thread_id = tid;                          c->scp.thread_id = tid;

Legend:
Removed from v.7930  
changed lines
  Added in v.7931

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26