Class: Quaff::UDPSIPEndpoint
- Inherits:
-
BaseEndpoint
- Object
- BaseEndpoint
- Quaff::UDPSIPEndpoint
- Defined in:
- lib/endpoint.rb
Instance Attribute Summary
Attributes inherited from BaseEndpoint
#instance_id, #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_sock, #create_aka_client, #create_client, #create_server, #get_new_message, #incoming_call, #initialize, #mark_call_dead, #outgoing_call, #register, #send_msg, #set_aka_credentials, #setup_sdp, #terminate, #unregister
Constructor Details
This class inherits a constructor from Quaff::BaseEndpoint
Instance Method Details
#new_source(host, port) ⇒ Object Also known as: new_connection
277 278 279 280 281 282 283 |
# File 'lib/endpoint.rb', line 277 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
273 274 275 |
# File 'lib/endpoint.rb', line 273 def transport "UDP" end |