Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: call_pv on CORE:: sub from XS

by Anonymous Monk
on Sep 20, 2014 at 06:54 UTC ( [id://1101340]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1101340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found