where n is of type Ptr<Node>. I would like the variable socket to be
of type Ptr<TcpSocket> rather than Ptr<Socket>. I would like to know
the procedure to create a socket of type Ptr<TcpSocket> rather than
Ptr<Socket>. The reason is that I would like to add some methods to
the TcpSocket and use them in my simulation scripts rather than adding
methods for each implementation derived from Socket.