Class: Quaff::UDPSIPEndpoint
- Inherits:
-
BaseEndpoint
- Object
- BaseEndpoint
- Quaff::UDPSIPEndpoint
- Defined in:
- lib/endpoint.rb
Instance Attribute Summary
Attributes inherited from BaseEndpoint
#instance_id, #local_hostname, #local_port, #msg_log, #msg_trace, #sdp_port, #sdp_socket, #uri
Instance Method Summary collapse
- #new_source(host, port) ⇒ Object (also: #new_connection)
- #transport ⇒ Object
Methods inherited from BaseEndpoint
#add_contact_param, #add_contact_uri_param, #add_sock, #contact_header, #create_aka_client, #create_client, #create_server, #get_new_message, #incoming_call, #initialize, #mark_call_dead, #outgoing_call, #register, #remove_contact_param, #remove_contact_uri_param, #send_msg, #set_aka_credentials, #setup_sdp, #terminate, #terminate_specific, #unregister
Constructor Details
This class inherits a constructor from Quaff::BaseEndpoint
Instance Method Details
#new_source(host, port) ⇒ Object Also known as: new_connection
328 329 330 331 332 333 334 |
# File 'lib/endpoint.rb', line 328 def new_source host, port if /^(\d+\.){3}\d+$/ =~ host return UDPSource.new host, port else return UDPSource.new @resolver.getaddress(host).to_s, port end end |
#transport ⇒ Object
324 325 326 |
# File 'lib/endpoint.rb', line 324 def transport "UDP" end |