IO::EndpointSourceIOEndpoint

module Endpoint

Nested

Definitions

def self.tcp(*arguments, **options)

Implementation

def self.tcp(*arguments, **options)
	arguments[3] = ::Socket::SOCK_STREAM
	
	HostEndpoint.new(arguments, **options)
end

def self.udp(*arguments, **options)

Implementation

def self.udp(*arguments, **options)
	arguments[3] = ::Socket::SOCK_DGRAM
	
	HostEndpoint.new(arguments, **options)
end

def self.ssl(*arguments, ssl_context: nil, hostname: nil, **options)

Implementation

def self.ssl(*arguments, ssl_context: nil, hostname: nil, **options)
	SSLEndpoint.new(self.tcp(*arguments, **options), ssl_context: ssl_context, hostname: hostname)
end

def self.unix(path = "", type = ::Socket::SOCK_STREAM, **options)

Implementation

def self.unix(path = "", type = ::Socket::SOCK_STREAM, **options)
	UNIXEndpoint.new(path, type, **options)
end