Class: ModSpox::Messages::Outgoing::Connect

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/Connect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_server, port, remote_server = '') ⇒ Connect

target_server

server to connect to

port

target server port

remote_server

remote server to connect to target

Request a server to try to establish a connection to another server. This is generally an oper command.



16
17
18
19
20
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 16

def initialize(target_server, port, remote_server='')
    @target_server = target_server
    @port = port
    @remote_server = remote_server
end

Instance Attribute Details

#portObject (readonly)

port to connec to



8
9
10
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 8

def port
  @port
end

#remote_serverObject (readonly)

remote server to connect to target



10
11
12
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 10

def remote_server
  @remote_server
end

#target_serverObject (readonly)

server to connect to



6
7
8
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 6

def target_server
  @target_server
end