#1955: socket broken on Windows
---------------------+------------------------------------------------------
Reporter: fperrad | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: 2.11.0
Severity: high | Keywords:
Lang: | Patch:
Platform: win32 |
---------------------+------------------------------------------------------
the following code fails on Windows
{{{
.include 'socket.pasm'
.sub 'main' :main
.local pmc sock, addr
sock = new 'Socket'
sock.'socket'(.PIO_PF_INET, .PIO_SOCK_STREAM, .PIO_PROTO_TCP)
addr = sock.'sockaddr'('www.parrot.org', 80)
sock.'connect'(addr)
say "ok"
.end
}}}
with the output:
{{{
gethostbyname failure [www.parrot.org]
ok
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1955>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets