class IO::Endpoint::SharedEndpoint

def self.connected(endpoint, close_on_exec: false)

Create a new `SharedEndpoint` by connecting to the given endpoint.
def self.connected(endpoint, close_on_exec: false)
	wrapper = endpoint.connect
	
	wrapper.close_on_exec = close_on_exec
	
	return self.new(endpoint, [wrapper])
end