Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 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 |
} |
} |
| 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 |
|
|
| 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 |
|
|
| |