I have a group of sockets based on the TCP class, my sockets extend the TCP class by adding a logical property called master
Dim activeSockets() As TCPSocket
activeSockets = App.TCPSocket.ActiveConnections
For Each tcp As myssocket In activeSockets
if tcp Isa TCPSocket then
TCPSocket(tcp).SendMessage("Send my message here)
// TCPSocket(tcp).MASTER is invalid even though the socket I subclass has them
end if
Next
My question is , how do I access the master property, as the TCPsocket(tcp) is not my subbed class.
This routine would send data to my custom sockets, but I have no way of figuring out if they are the ones with the master property.
Anyone any ideas.