To protect you from programming errors, most methods return an error condition if your code attempts to send data when no TCP connection exists. By checking the value of this property, your application can always determine the state of the connection.