Net::Server - how to hook post_accept



Heya
I'm using Net::Server with the PreFork personality - and I'm trying to
hook post_accept. I would like have my proc called each time there is a
new connection.

What is the way to do this? The documentation doesn't provide it - and
I can't seem to find the answer online..

I tried to do a

sub post_accept {
<<do what i need each time i get a new cnx>>
}

but it seems to break the flow - and lock up the connection.. nothing
else gets handled (process_request never gets called, etc.) if I define
this sub. If I don't include the post_accept proc, my process_request
gets called just fine... How come I can hook process_request without
breaking the flow, but not post_accept?

How do I get the callback/hook whenever a new connection appears?

thanks!
Jon

.



Relevant Pages

  • Re: Net::Server - how to hook post_accept
    ... but it seems to break the flow - and lock up the connection.. ... this sub. ... If I don't include the post_accept proc, ... How come I can hook process_request without ...
    (comp.lang.perl.modules)
  • Re: Sample Netgraph code that unhooks and rehooks without losing connection
    ... rehook it to a tee node. ... As soon as pppoe node hook is disconnected all ... related info will be destroyed and session will be terminated. ... session-side connection? ...
    (freebsd-net)
  • Re: Warner Brothers chooses Blue Ray
    ... Therefore I can't hook up the VCR to that. ... Shack that will let you connect two cables into one connection. ...
    (rec.arts.tv)
  • Re: HTMLTextContainerEvents2 without DocumentComplete?
    ... I'm hooking up my connection points to the body ... body element isn't available until I get a document complete callback. ... loading, I never get my DocumentComplete event, and thus my event ... can hook your events there. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • RE: stored proc ansi_nulls help
    ... on connection which execute your SP. ... > Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. ... Enable these options and then reissue your query. ... > I put the ansi nulls and ansi warnings in when building the proc but am still recieving the error. ...
    (microsoft.public.sqlserver.programming)