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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top