Mercurial > gftp.yaz
comparison lib/protocols.c @ 63:41b71c4e5076
2002-11-2333 Brian Masney <masneyb@gftp.org>
* lib/local.c lib/rfc959.c lib/rfc2068.c lib/ssh.c lib/sshv2.c
lib/gftp.h - added swap_socks function to gftp_request structure
* lib/misc.c lib/protocols.c - move swap_socks() from misc.c to
protocols.c (renamed to gftp_swap_socks)
* src/gtk/misc-gtk.c src/gtk/transfer.c - removed fix_display()
* src/gtk/delete_dialog.c src/gtk/transfer.c - changed all occurances of swap_socks() to gftp_swap_socks()
* src/gtk/gftp-gtk.c src/gtk/gftp-gtk.h - removed gftp_is_started
variable
author | masneyb |
---|---|
date | Sat, 23 Nov 2002 13:45:05 +0000 |
parents | 8a9324fb63a4 |
children | 4b5fec7711e9 |
comparison
equal
deleted
inserted
replaced
62:1af41fb08509 | 63:41b71c4e5076 |
---|---|
2152 | 2152 |
2153 return (0); | 2153 return (0); |
2154 } | 2154 } |
2155 | 2155 |
2156 | 2156 |
2157 void | |
2158 gftp_swap_socks (gftp_request * dest, gftp_request * source) | |
2159 { | |
2160 g_return_if_fail (dest != NULL); | |
2161 g_return_if_fail (source != NULL); | |
2162 g_return_if_fail (dest->protonum == source->protonum); | |
2163 | |
2164 dest->sockfd = source->sockfd; | |
2165 dest->datafd = source->datafd; | |
2166 dest->cached = 0; | |
2167 if (!source->always_connected) | |
2168 { | |
2169 source->sockfd = -1; | |
2170 source->datafd = -1; | |
2171 source->cached = 1; | |
2172 } | |
2173 | |
2174 if (dest->swap_socks) | |
2175 dest->swap_socks (dest, source); | |
2176 } | |
2177 |