Sha256: 4b8a658a6f44b8435318060215244a1abf92032d7835c1ff2046e1d915fe6d5d

Contents?: true

Size: 1.1 KB

Versions: 17

Compression:

Stored size: 1.1 KB

Contents

module OverSIP::SIP

  class Reactor < ::EM::Connection

    include ::OverSIP::Logger
    include ::OverSIP::SIP::MessageProcessor

    class << self
      attr_accessor :ip_type, :ip, :port, :transport,
                    :via_core,
                    :record_route,
                    :outbound_record_route_fragment, :outbound_path_fragment,
                    :connections,
                    :invite_server_transactions, :non_invite_server_transactions,
                    :invite_client_transactions, :non_invite_client_transactions

      def reliable_transport_listener?
        @is_reliable_transport_listener
      end
    end

    def initialize
      @parser = ::OverSIP::SIP::MessageParser.new
      @buffer = ::IO::Buffer.new
      @state = :init

      # Set the socket sending error handling to report the error:
      # :ERRORHANDLING_KILL, :ERRORHANDLING_IGNORE, :ERRORHANDLING_REPORT
      self.send_error_handling = :ERRORHANDLING_REPORT
    end

    def receive_senderror error, data
      log_system_error "Socket sending error: #{error.inspect}, #{data.inspect}"
    end

  end  # class Reactor

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
oversip-1.1.0.beta5 lib/oversip/sip/listeners/reactor.rb
oversip-1.1.0.beta4 lib/oversip/sip/listeners/reactor.rb
oversip-1.1.0.beta3 lib/oversip/sip/listeners/reactor.rb
oversip-1.1.0.beta2 lib/oversip/sip/listeners/reactor.rb
oversip-1.1.0.beta1 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.7.beta1 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.6.beta3 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.6.beta2 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.6.beta1 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.5 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.4 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.3 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.2 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.1 lib/oversip/sip/listeners/reactor.rb
oversip-1.0.0 lib/oversip/sip/listeners/reactor.rb
oversip-0.9.1 lib/oversip/sip/listeners/reactor.rb
oversip-0.9.0 lib/oversip/sip/listeners/reactor.rb