in reply to Re: Often Overlooked OO Programming Guidelines
in thread Often Overlooked OO Programming Guidelines
For example, many network client classes inheirit from IO::Socket::INET. This is convienent for both internal and external use. But it fixes the clients to only use IPv4 sockets. There are other types of sockets, like IO::Socket::INET6 and IO::Socket::SSL, that could be used if the inheiritance wasn't fixed.
Also, there is a need to change the socket but keep the same client object. Some protocols support negiotiating SSL over the existing TCP connection. The easiest way to support this is replace the reference to the IP socket with an SSL socket object.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Often Overlooked OO Programming Guidelines
by scrottie (Scribe) on Dec 30, 2003 at 03:28 UTC | |
|
Re^3: Often Overlooked OO Programming Guidelines
by Anonymous Monk on Mar 21, 2008 at 23:29 UTC |