|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TCPClient And DisconnectAnyone 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, -- Show quoteHide quoteSimpleware Solution :: Simple is Everything, Nothing is Complex :: 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 :: 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 :: > >
vs2005 - Why all the errors? yet the code works.
VB2005 - Stop User from Leaving Row in DataGridView Foreign Characters in XML Cell validating event problem. Multiple columns in Combobox list ObjectContext problem Migration of MSFLEXGRID to DATAGRID in vb.net... Insert Column in Excel in VB .NET Old value of a datagridview combobox cell Converting from VB6 to VB.NET 2003 |
|||||||||||||||||||||||