I had a need to retrieve TCP_MAXSEG from getsockopt once.
On Tue, May 22, 2007 at 09:51:04PM -0500, Matt Sickler wrote:
> There arent any documented ways to get at a ReadWrite wheel's handle.
> The non-POE way you could do it (and breaking encapsulation) would be to use
> $heap->{client}->[ POE::Wheel::ReadWrite::HANDLE_INPUT ] and
> $heap->{client}->[ POE::Wheel::ReadWrite::HANDLE_OUTPUT ]
> ( those would be the same in many situations ).
> This breaks encapsulation and could change at no notice and its all your
> fault.
>
> A better question you need to ask is why do you need to get at the socket?
>
> On 5/22/07, Rohan Almeida <[EMAIL PROTECTED]> wrote:
> >
> >Hi,
> >
> >Is there any way I can get access to the underlying socket while
> >using PoCo::Server::TCP without using the Client* callbacks?
> >
> >The docs say that the socket is only passed if I use the Acceptor
> > callback, which then means I have to create my own Wheel for
> >read/write and so on.
> >
> >Again, $heap->{listener} is only available if I use the Acceptor
> >callback. $heap->{client} seems to be a ReadWrite wheel. I tried
> >accessing the Handle for this wheel (which should be the socket),
> >but I'm not getting anywhere.
> >
> >Thanks,
> >Rohan
> >
> >