diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-25 01:06:22 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-26 00:42:15 -0300 |
commit | 4e365cec5275e3dec782af3ec0bc9a651cc2b831 (patch) | |
tree | 08382036a53279ac3681ea848e423ebc1881beb7 /protocols/bee.h | |
parent | f710673a3d6f7d602c8261789ae78a4f273fb1a9 (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 'protocols/bee.h')
0 files changed, 0 insertions, 0 deletions