The socket class has a connected property. However, this doesn't seem to work... Once I connected, it always says connected, even if the server closed the connection.

Is there another way to determine if a socket is still connected or not? I'm not using Async reads, so I cannot use that.