Home All Groups Group Topic Archive Search About

TCPClient And Disconnect

Author
10 Jan 2006 8:46 AM
Freddy Setiawan
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
Show quoteHide quote
:: Simple is Everything, Nothing is Complex ::

Author
10 Jan 2006 2:15 PM
Rocky
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





Show quoteHide quote
"Freddy Setiawan" <FreddySetia***@discussions.microsoft.com> wrote in
message news:5C88142A-4878-4A95-A81A-904C41361F8D@microsoft.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 ::
Author
10 Jan 2006 2:27 PM
Rocky
Oops...change Disconnected to Connected

Show quoteHide quote
"Rocky" <nopl***@nowhere.com> wrote in message
news:eTarGBfFGHA.648@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" <FreddySetia***@discussions.microsoft.com> wrote in
> message news:5C88142A-4878-4A95-A81A-904C41361F8D@microsoft.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 ::
>
>