diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 07:53:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 07:53:38 +0000 |
commit | 3aa3d7e6293ae18ed2dd25cbfeddaecfbe6e6c78 (patch) | |
tree | 290930b8925b03b6b9c63d30dfbae20cfacbc1c1 /lib/ssh.c | |
parent | 75585f771a146daa883cd946285eb6a797e62e5e (diff) |
Internal cleanup: KEEP_WRITE and KEEP_READ are now called KEEP_SEND and
KEEP_RECV to better match the general terminology: receive and send is what we
do from the (remote) servers. We read and write from and to the local fs.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2102,10 +2102,10 @@ static int ssh_perform_getsock(const struct connectdata *conn, sock[0] = conn->sock[FIRSTSOCKET]; - if(conn->proto.sshc.waitfor & KEEP_READ) + if(conn->proto.sshc.waitfor & KEEP_RECV) bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); - if(conn->proto.sshc.waitfor & KEEP_WRITE) + if(conn->proto.sshc.waitfor & KEEP_SEND) bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); return bitmap; @@ -2151,8 +2151,8 @@ static void ssh_block2waitfor(struct connectdata *conn, bool block) int dir; if(block && (dir = libssh2_session_block_directions(sshc->ssh_session))) { /* translate the libssh2 define bits into our own bit defines */ - sshc->waitfor = ((dir&LIBSSH2_SESSION_BLOCK_INBOUND)?KEEP_READ:0) | - ((dir&LIBSSH2_SESSION_BLOCK_OUTBOUND)?KEEP_WRITE:0); + sshc->waitfor = ((dir&LIBSSH2_SESSION_BLOCK_INBOUND)?KEEP_RECV:0) | + ((dir&LIBSSH2_SESSION_BLOCK_OUTBOUND)?KEEP_SEND:0); } else /* It didn't block or libssh2 didn't reveal in which direction, put back |