[ale] Python (or other) socket identification

Chris Fowler cfowler at outpostsentinel.com
Fri Feb 3 09:27:53 EST 2017


When I do this in perl I track with a hash. Add new entry after accept. Store peer info as a key.

$client->{peer}{peer} =peer
$client->{peer}{fd} = fd

Place that fd into the select.  Set select timeout short and process queue on TO.  Do have logic to force process if select does not TO due to traffic.  I got bit by that mistake.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170203/c5ba3908/attachment.html>


More information about the Ale mailing list