Parrot Socket I/O - request for help

Mark Glines mark at glines.org
Fri Mar 27 00:41:23 UTC 2009


Allison Randal wrote:
> One fix: we deprecated and removed the socket opcodes intentionally. If
> socket PMC methods aren't sufficient, we can have socket dynops. (We're
> likely moving all the other io ops to dynops too.)

I've updated the httpd.pir example to use pmc methods as much as
possible.  There were two ops I couldn't eliminate: "socket" and
"sockaddr".  There doesn't seem to be a way to create Socket and
SockAddr objects directly and initialize them correctly... there's no
way to set the address of an existing SockAddr object, and no way to
specify e.g. AF_INET, SOCK_STREAM and all of that for an existing Socket
object.

Mark


More information about the parrot-dev mailing list