Perl 6 - the future is here, just unevenly distributed

IRC log for #parrot, 2016-11-07

Parrot | source cross referenced

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
04:19 stryx` joined #parrot
05:47 stryx` joined #parrot
10:42 stryx` joined #parrot
16:05 Khisanth joined #parrot
18:10 stryx` joined #parrot
19:36 i80and joined #parrot
19:38 i80and Is there a trick to getting a PIO_PF_UNIX family sockaddr? sock.'sockaddr'() seems like it's for inet/inet6
19:40 stryx` joined #parrot
19:57 i80and joined #parrot
20:18 Util i80and: AFAICT, the socket PMC hides the difference (where Perl has separate sockaddr_in vs sockaddr_un for inet vs unix).
20:18 Util However, the UNIX version might be bugged; I cannot see a test for it in t/pmc/socket.t .
21:20 i80and joined #parrot
21:21 i80and joined #parrot
21:24 i80and Bother. I was afraid of that. What would the expected interface be, since UNIX sockets don't have a port? Would the port parameter to sockaddr() be optional?
21:29 i80and FWIW right now I'm doing "address = sock.'sockaddr'(host, 0, .PIO_PF_UNIX)", and getting "getaddrinfo failed: ./local.sock: Undefined error: 0" for my trouble
21:38 i80and Looks like the actual getaddrinfo return result is "ai_family not supported"
21:58 i80and Beeecause getaddrinfo doesn't support AF_UNIX on all platforms. All right, I need to add a special case to Parrot_io_internal_getaddrinfo I'm thinking
22:19 Util i80and: I will be happy to review your patch for inclusion in the master branch. Please plan to also include a test for your new functionality.
22:20 Util Please let me know if you need help with your effort.
22:21 i80and Thank you! :D Got a patch that works as a proof-of-concept, but it's pretty ugly. Should I just open a GitHub PR when it's ready?
22:21 Util i80and: Yes, for code and test.

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

Parrot | source cross referenced