Thanks,
I saw one of these in the help, but I couldn't figure out how and where to
plug it in.
Can you explain how your would implement this?


----- Original Message -----
From: "Jeff Paulsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 23, 2004 4:42 AM
Subject: Re: [ADVANCED-DOTNET] Client IP Address


> > 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
>

===================================
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