lib/ionian/extension/socket.rb in ionian-0.6.12 vs lib/ionian/extension/socket.rb in ionian-0.7.0
- old
+ new
@@ -53,17 +53,15 @@
# For connection-oriented protocols, prevent #close from returning
# immediately and try to deliver any data in the send buffer if value
# is true.
#
- # Args:
- # Time: Time in seconds to remain open before discarding data and
- # sending a RST packet.
+ # @param time [Fixnum] Time in seconds to remain open before discarding
+ # data and sending a RST packet.
+ #
# ( SO_LINGER )
def linger= enable, time: 60
- # TODO: Passing a kwarg doesn't work here because of the
- # assignment operator. Causes parser error.
param = (!!enable && enable != 0) ? 1 : 0
self.setsockopt ::Socket::SOL_SOCKET, ::Socket::SO_LINGER, [param, time.to_i].pack('ii')
end
alias_method :linger?, :linger
@@ -229,52 +227,54 @@
self.setsockopt ::Socket::IPPROTO_IP, ::Socket::IP_MULTICAST_LOOP, [param].pack('C')
end
# Not yet implemented.
def ipv6_add_membership
- # TODO: Implement
- false
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
# Not yet implemented.
def ipv6_drop_membership
- # TODO: Implement
- false
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
# Not yet implemented.
def ipv6_multicast_if
- # TODO: Implement
- false
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
# Not yet implemented.
def ipv6_multicast_if= value
- # TODO: Implement
+ # TODO: Implement IPv6
end
# Not yet implemented.
def ipv6_multicast_hops
- # TODO: Implement
- false
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
# Not yet implemented.
def ipv6_multicast_hops= value
- # TODO: Implement
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
# Not yet implemented.
def ipv6_multicast_loop
- # TODO: Implement
- false
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
alias_method :ipv6_multicast_loop?, :ipv6_multicast_loop
# Not yet implemented.
def ipv6_multicast_loop= value
- # TODO: Implement
+ # TODO: Implement IPv6
+ raise NotImplementedError
end
class << self
# Returns true if the given address is within the multicast range.
\ No newline at end of file