Class: RBus::Transport::TCPTransport

Inherits:
AbstractTransport show all
Defined in:
lib/rbus/bus/transport.rb

Overview

Represents a connection to a TCP Socket.

Constant Summary

Constants inherited from AbstractTransport

AbstractTransport::CRLF

Instance Attribute Summary

Attributes inherited from AbstractTransport

#socket

Instance Method Summary collapse

Methods inherited from AbstractTransport

#close, #initialize, #read, #readline, #send, #sendline

Constructor Details

This class inherits a constructor from RBus::Transport::AbstractTransport

Instance Method Details

#create_socketObject



82
83
84
# File 'lib/rbus/bus/transport.rb', line 82

def create_socket
  @socket = TCPSocket.new(@connection_info['host'], @connection_info['port'])        
end