471,322 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,322 software developers and data experts.

TCPClient And Disconnect

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,

--
Simpleware Solution
:: Simple is Everything, Nothing is Complex ::
Jan 10 '06 #1
2 6633
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

"Freddy Setiawan" <Fr************@discussions.microsoft.com> wrote in
message news:5C**********************************@microsof t.com...
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,

--
Simpleware Solution
:: Simple is Everything, Nothing is Complex ::

Jan 10 '06 #2
Oops...change Disconnected to Connected

"Rocky" <no*****@nowhere.com> wrote in message
news:eT*************@TK2MSFTNGP14.phx.gbl...
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

"Freddy Setiawan" <Fr************@discussions.microsoft.com> wrote in
message news:5C**********************************@microsof t.com...
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,

--
Simpleware Solution
:: Simple is Everything, Nothing is Complex ::


Jan 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christopher H. Laco | last post: by
reply views Thread by Hawk Wu via DotNetMonster.com | last post: by
1 post views Thread by Frank | last post: by
1 post views Thread by Frank | last post: by
1 post views Thread by WildBill | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.