.Connected will throw exception if you try to access the property before connecting to a source. Reason being is because the internal variable "socket" does get assigned a value until "connect". Therefore the internal "socket" variable is null.
Log in to post a comment.