This method destroys the OMOSSocket object. You must declare the destructor explicitly, rather than letting the compiler add it, because it must be made virtual.
Public
virtual ~OMOSSocket()