Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

  • Print
  • + Share This
Like this article? We recommend

A Real Network Link

Listing 4 illustrates an entity called RealLink that models a real network link. As you can see, it’s derived from the GenericLink class.

Listing 4 A concrete network link entity.


class RealLink : public GenericLink
  explicit RealLink(char*, char*, char*, char*, char*, GenericLinkContext*);
  virtual ~RealLink(void);
  void GetAllIPAddresses(char*);

  char* technologyType;

The constructor for RealLink supplies the data needed by the base class and also provides the technologyType. The member function GetAllIPAddresses() allows us to view the IP address range used by this link in the network.

Starting with the generic link, let’s look at the implementation of all these interfaces. Then we’ll be ready to see the complete code in action.

  • + Share This
  • 🔖 Save To Your Account