TCPClient And Disconnect

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone got solution for detecting if the TCPclient is disconnected?
i have "googled" and almost found nothing, i'm using .NET Framework V1.1.
they said to use Poll method, but there is no such method in TCPClient. If
possible i would like to get some code example for this.

Regards,
 
Public Class TCP
Inherits System.Net.Sockets.TcpClient


Public ReadOnly Property Disconnected() As Boolean
Get
Return Me.Client.Connected()
End Get
End Property

End Class
 
Oops...change Disconnected to Connected

Rocky said:
Public Class TCP
Inherits System.Net.Sockets.TcpClient


Public ReadOnly Property Disconnected() As Boolean
Get
Return Me.Client.Connected()
End Get
End Property

End Class
 
Back
Top