module IO::Endpoint

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

Returns:
  • (HostEndpoint) -

Parameters:
  • options () -- keyword arguments passed on to {HostEndpoint#initialize}
  • arguments () -- nodename, service, family, socktype, protocol, flags. `socktype` will be set to Socket::SOCK_STREAM.
def self.tcp(*arguments, **options)
	arguments[3] = ::Socket::SOCK_STREAM
	
	HostEndpoint.new(arguments, **options)
end