class Relp::Client

Public Class Methods

connect(sock_family = Socket::AF_INET, hostname = 'localhost', port = 518) click to toggle source

Sugaring for spawning a new client without manual Relp::Engine init

# File lib/relp/client.rb, line 44
def self.connect(sock_family = Socket::AF_INET, hostname = 'localhost', port = 518)
  engine = Relp::Engine.new
  client = new(engine)
  client.connect(sock_family, hostname, port)
  client
end