celluloid / celluloid-io

UNMAINTAINED: See celluloid/celluloid#779 - Evented sockets for Celluloid actors
https://celluloid.io
MIT License
879 stars 93 forks source link

Add address family as optional UDPSocket constructor argument #92

Closed e1senh0rn closed 10 years ago

e1senh0rn commented 10 years ago

There was an issue reported (#78).

Celluloid::IO::UDPSocket wrapper does not accept any arguments to underlying ::UDPSocket.

::UDPSocket has address family set by default to AF_INET. If you need to use IPv6, you need to specify ::Socket::AF_INET6 as an argument to ::UDPSocket constructor, which is missing if you are using wrapper.

coveralls commented 10 years ago

Coverage Status

Coverage decreased (-0.76%) when pulling a9990342ccc836e07cc6317e4d01a1c0a111cdc1 on daemon:udp_v6 into ec05040f53b8c27471468a9050e0a5bff87e4198 on celluloid:master.