Class: ModSpox::Messages::Outgoing::Connect
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Connect
- Defined in:
- lib/mod_spox/messages/outgoing/Connect.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
readonly
port to connec to.
-
#remote_server ⇒ Object
readonly
remote server to connect to target.
-
#target_server ⇒ Object
readonly
server to connect to.
Instance Method Summary collapse
-
#initialize(target_server, port, remote_server = '') ⇒ Connect
constructor
- 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.
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
#port ⇒ Object (readonly)
port to connec to
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 8 def port @port end |
#remote_server ⇒ Object (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_server ⇒ Object (readonly)
server to connect to
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Connect.rb', line 6 def target_server @target_server end |