in reply to call_pv on CORE:: sub from XS

Try "socketpair"

Replies are listed 'Best First'.
Re^2: call_pv on CORE:: sub from XS
by OlegG (Monk) on Sep 20, 2014 at 07:12 UTC
    Yes, also tried this.
    No success: "Undefined subroutine &main::socketpair called"
        Ok, then just calling socketpair() looks good for me.
        One problem is that after this my XS function should return perl handle to the user, so he can call syswrite() on it. What I can't understand now is how to turn fd returned by socketpair() into GLOB from XS code. Any suggestions?