468,720 Members | 1,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

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 6566
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.