pub fn get_socket_local_endpoint(file: &Arc<dyn File>) -> Option<IpEndpoint>
Get local endpoint from a socket