|
Parrot 7.9.0 "Sangihe hanging parrot" | parrot.org/ | Log: irclog.perlgeek.de/parrot | #parrotsketch meeting Fridays 13:30 UTC Set by moderator on 20 October 2016. |
|||
|
04:19
stryx` joined
05:47
stryx` joined
10:42
stryx` joined
16:05
Khisanth joined
18:10
stryx` joined
19:36
i80and joined
|
|||
| i80and | Is there a trick to getting a PIO_PF_UNIX family sockaddr? sock.'sockaddr'() seems like it's for inet/inet6 | 19:38 | |
|
19:40
stryx` joined
19:57
i80and joined
|
|||
| Util | i80and: AFAICT, the socket PMC hides the difference (where Perl has separate sockaddr_in vs sockaddr_un for inet vs unix). | 20:18 | |
| However, the UNIX version might be bugged; I cannot see a test for it in t/pmc/socket.t . | |||
|
21:20
i80and joined
21:21
i80and joined
|
|||
| 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:24 | |
| 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:29 | ||
| Looks like the actual getaddrinfo return result is "ai_family not supported" | 21:38 | ||
| 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 | 21:58 | ||
| 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:19 | |
| Please let me know if you need help with your effort. | 22:20 | ||
| 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. | ||