aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-10-25 01:06:22 -0300
committerdequis <dx@dxzone.com.ar>2015-10-26 00:42:15 -0300
commit4e365cec5275e3dec782af3ec0bc9a651cc2b831 (patch)
tree08382036a53279ac3681ea848e423ebc1881beb7 /irc.c
parentf710673a3d6f7d602c8261789ae78a4f273fb1a9 (diff)
Add proxy_disconnect() to interrupt possibly pending connections
Fixes trac ticket 1198, https://bugs.bitlbee.org/bitlbee/ticket/1198 This function can be used as a safe drop-in replacement to closesocket() If a proxy connection is pending (connected callback still not called), it looks up the PHB in a hash table indexed by fd. If it is there, it closes, frees the phb and avoids further calls to the callback. If it is not in there, it just does closesocket()
Diffstat (limited to 'irc.c')
0 files changed, 0 insertions, 0 deletions