Class: Bundler::SocketAddress
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/mirror.rb |
Overview
Socket address builder.
Given a socket type, a host and a port,
provides a method to build sockaddr string
Class Method Summary
- .new(type, host, port) ⇒ SocketAddress constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(type, host, port) ⇒ SocketAddress
Instance Attribute Details
#host (readonly)
[ GitHub ]#port (readonly)
[ GitHub ]#type (readonly)
[ GitHub ]Instance Method Details
#to_socket_address
[ GitHub ]# File 'lib/bundler/mirror.rb', line 219
def to_socket_address Socket.pack_sockaddr_in(@port, @host) end