Add __get method to NetSocket implementation.