> but then I get property client() is not accessible in this context because
> it's protected

The quick and dirty solution to this might be to make a subclass of
tcpclient that doesn't have its socket property marked Protected, thus:

    Class ExposedSocketTcpClient
        Inherits TcpClient

        Public Sub New()
            MyBase.New()
        End Sub

        Public Property Socket() As Socket
            Get
                Return Me.Client
            End Get
            Set(ByVal Value As Socket)
                Me.Client = Value
            End Set
        End Property

    End Class

Jeff Paulsen

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to