Pass socket instead of protocol obj.