miyagawa/AnyEvent-Twitter-Stream — pull request #15 by jcbf (2013-06-30 23:05:54+00:00)
Title: Allow access to tcp_connect's on_prepare method 

Allows access to connect socket and set, for instance, the source ip address.

$listener = AnyEvent::Twitter::Stream->new(
consumer_key => $consumer_key,
consumer_secret => $consumer_secret,
token => $token,
token_secret => $token_secret,
track => $filter,
method => "filter",
on_prepare => sub { use Socket; bind($_[0],pack_sockaddr_in(0, inet_aton("10.172.0.11")))},
on_tweet => sub {...