diff options
Diffstat (limited to 'spec/rubyspec/library/socket/fixtures/classes.rb')
-rw-r--r-- | spec/rubyspec/library/socket/fixtures/classes.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/rubyspec/library/socket/fixtures/classes.rb b/spec/rubyspec/library/socket/fixtures/classes.rb index f154330b9d..f6436c7d23 100644 --- a/spec/rubyspec/library/socket/fixtures/classes.rb +++ b/spec/rubyspec/library/socket/fixtures/classes.rb @@ -46,6 +46,11 @@ module SocketSpecs find_available_port end + def self.reserved_unused_port + # https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers + 0 + end + def self.sockaddr_in(port, host) Socket::SockAddr_In.new(Socket.sockaddr_in(port, host)) end |