Socket and source ip now passed to controller functions