class BoundEndpoint
Definitions
def local_address_endpoint(**options)
A endpoint for the local end of the bound socket.
Signature
-
returns
CompositeEndpoint
A composite endpoint for the local end of the bound socket.
Implementation
def local_address_endpoint(**options)
endpoints = @sockets.map do |socket|
AddressEndpoint.new(socket.to_io.local_address, **options)
end
return CompositeEndpoint.new(endpoints)
end
def remote_address_endpoint(**options)
A endpoint for the remote end of the bound socket.
Signature
-
returns
CompositeEndpoint
A composite endpoint for the remote end of the bound socket.
Implementation
def remote_address_endpoint(**options)
endpoints = @sockets.map do |wrapper|
AddressEndpoint.new(socket.to_io.remote_address, **options)
end
return CompositeEndpoint.new(endpoints)
end