/external/webrtc/webrtc/p2p/base/ |
stunserver.h | 14 #include "webrtc/p2p/base/stun.h" 24 // Creates a STUN server, which will listen on the given socket. 26 // Removes the STUN server from the socket and deletes the socket. 36 // Handlers for the different types of STUN/TURN requests: 55 // A helper method to compose a STUN binding response.
|
stunrequest.h | 16 #include "webrtc/p2p/base/stun.h" 26 // Manages a set of STUN requests, sending and resending until we receive a 42 // Removes a stun request that was added previously. This will happen 46 // Removes all stun requests that were added previously. 56 // Set the Origin header for outgoing stun messages. 72 // Represents an individual request to be sent. The STUN message can either be 93 // Returns the STUN type of the request message.
|
stunport_unittest.cc | 32 // stun prio = 100 << 24 | 30 (IPV4) << 8 | 256 - 0 35 // Tests connecting a StunPort to a fake STUN server (cricket::StunServer) 155 // Test that we can create a STUN port 158 EXPECT_EQ("stun", port()->Type()); 162 // Test that we can get an address from a STUN server. 183 // Test that we can get an address from a STUN server specified by a hostname. 226 // Test that we still a get a local candidate with invalid stun server hostname. 227 // Also verifing that UDPPort can receive packets when stun address can't be 237 // handle data with unresolved stun server address. 243 // Test that the same address is added only once if two STUN servers are in use [all...] |
teststunserver.h | 20 // A test STUN server. Useful for unit tests. 33 // Set a fake STUN address to return to the client.
|
stun.h | 14 // This file contains classes for dealing with the STUN protocol, as specified 26 // These are the types of STUN messages defined in RFC 5389. 34 // These are all known STUN attributes, defined in RFC 5389 and elsewhere. 70 // These are the types of STUN addresses defined in RFC 5389. 72 // NB: UNDEF is not part of the STUN spec. 78 // These are the types of STUN error codes defined in RFC 5389. 99 // The mask used to determine whether a STUN message is a request/response etc. 102 // STUN Attribute header length. 112 // Following value corresponds to an earlier version of STUN from 116 // STUN Message Integrity HMAC length [all...] |
port.cc | 85 const char STUN_PORT_TYPE[] = "stun"; 119 // etc.), and STUN or TURN server. If any of these are different, 279 // If this is an authenticated STUN request, then signal unknown address and 284 LOG_J(LS_ERROR, this) << "Received non-STUN packet from unknown address (" 287 // STUN message handled already 289 LOG(LS_INFO) << "Received STUN ping " 302 // pruned a connection for this port while it had STUN requests in flight, 306 LOG_J(LS_ERROR, this) << "Received unexpected STUN message type (" 336 // Don't bother parsing the packet if we can tell it's not STUN. 337 // In ICE mode, all STUN packets will have a valid fingerprint [all...] |
stunport.cc | 15 #include "webrtc/p2p/base/stun.h" 28 // Stop sending STUN binding requests after this amount of time 33 // Handles a binding request sent to the STUN server. 245 // Sending binding request to the STUN server if address is available to 246 // prepare STUN candidate. 325 // Look for a response from the STUN server. 351 // We will keep pinging the stun server to make sure our NAT pin-hole stays 367 LOG_J(LS_INFO, this) << "Starting STUN host lookup for " 379 LOG_J(LS_WARNING, this) << "StunPort: stun host lookup received error " 403 // Since we can't send stun messages to the server, we should mark thi [all...] |
asyncstuntcpsocket.cc | 15 #include "webrtc/p2p/base/stun.h" 65 // Accepts only complete STUN/ChannelData packets. 88 // STUN packet - First 4 bytes. Total header size is 20 bytes. 90 // |0 0| STUN Message Type | Message Length | 99 // We need at least 4 bytes to read the STUN or ChannelData packet length. 134 // STUN message.
|
portallocator.h | 50 // When specified, we'll only allocate the STUN candidate for the public 56 // STUN candidate will be. 66 // As per RFC 5245 Appendix B.1, STUN transactions need to be paced at certain 128 // Starts gathering STUN and Relay configurations. 177 // Set STUN and TURN servers to be used in future sessions. 234 // Gets/Sets the Origin value used for WebRTC STUN requests.
|
stunport.h | 149 // This method will send STUN binding request if STUN server address is set. 189 // DNS resolution of the STUN server. 202 // Sends STUN requests to the server. 278 // UDPPort will set these to local udp, updating these to STUN.
|
asyncstuntcpsocket_unittest.cc | 133 // Testing a stun packet sent/recv properly. 182 // Verifying stun message with invalid length. 219 // a common one for both stun and turn. 239 // Verifying a legal large stun message.
|
port.h | 22 #include "webrtc/p2p/base/stun.h" 271 // stun username attribute if present. 323 // currently a connection. If this is an authenticated STUN binding request, 329 // If the given data comprises a complete and correct STUN message then the 331 // with this port's username fragment, msg will contain the parsed STUN 332 // message. Otherwise, the function may send a STUN response internally. 333 // remote_username contains the remote fragment of the STUN username. 372 // sent through), the other side must send us a STUN binding request that is 556 // Invoked when Connection receives STUN error response with 487 code. 573 // Returns the last received time of any data, stun request, or stu [all...] |
/external/webrtc/webrtc/examples/peerconnection/client/ |
defaults.cc | 44 return GetEnvVarOrDefault("WEBRTC_CONNECT", "stun:stun.l.google.com:19302");
|
/external/webrtc/webrtc/p2p/client/ |
portallocator_unittest.cc | 123 // The default route is the public address that STUN server will observe when 128 // different from the route to the STUN server (the default route). 141 // Endpoint is on the public network. No STUN or TURN. 146 // Endpoint is behind a NAT, with STUN specified. 150 // Endpoint is on the public network, with STUN specified. 290 cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", 489 cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", kClientAddr); 615 // We check the candidates for udp/stun/tcp ports, and the from address 631 // Check the port number for the STUN port object. 663 // default private, one STUN and one TURN candidate since we bind to any addres [all...] |
autoportallocator.h | 20 // This class sets the relay and stun servers using XmppClient.
|
httpportallocator.cc | 86 rtc::SocketAddress("stun.l.google.com", 19302)); 95 rtc::SocketAddress("stun.l.google.com", 19302)); 123 // Creating stun sessions could also take time and could be done aysnc also, 125 // configs will have unresolved stun ips and will be discarded by the
|
/external/webrtc/webrtc/libjingle/xmpp/ |
jingleinfotask.cc | 95 const XmlElement *stun = query->FirstNamed(QN_JINGLE_INFO_STUN); local 96 if (stun) { 97 for (const XmlElement *server = stun->FirstNamed(QN_JINGLE_INFO_SERVER);
|
/external/webrtc/webrtc/p2p/stunprober/ |
stunprober.h | 77 // against DNS resolution failure or the STUN server is not responsive 134 // Start to send out the STUN probes. 149 // STUN servers. 214 // Milliseconds to pause between each STUN request. 220 // STUN server name to be resolved. 230 // The set of STUN probe sockets and their state.
|
main.cc | 35 DEFINE_int(interval, 10, "Interval of consecutive stun pings in milliseconds"); 39 "Number of consecutive stun pings to send for each IP"); 45 "stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302", 46 "Comma separated STUN server addresses with ports");
|
/external/webrtc/webrtc/api/objctests/ |
RTCIceServerTest.mm | 30 @"stun:stun1.example.net" ]]; 34 EXPECT_EQ("stun:stun1.example.net", iceStruct.urls.front());
|
/external/webrtc/webrtc/p2p/ |
p2p.gyp | 52 'base/stun.cc', 53 'base/stun.h',
|
/system/netd/tests/ |
binder_test.cpp | 85 ASSERT_EQ(0, sTun.init()); 86 ASSERT_LE(sTun.name().size(), static_cast<size_t>(IFNAMSIZ)); 91 sTun.destroy(); 98 static TunInterface sTun; 101 TunInterface BinderTest::sTun; 351 struct sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_addr = sTun.dstAddr() }; 359 struct sockaddr_in6 client6 = { .sin6_family = AF_INET6, .sin6_addr = sTun.srcAddr() }; 564 sTun.name(), td.addrString, td.prefixLength); 574 EXPECT_TRUE(interfaceHasAddress(sTun.name(), td.addrString, td.prefixLength)); 576 EXPECT_FALSE(interfaceHasAddress(sTun.name(), td.addrString, -1)) [all...] |
/external/webrtc/webrtc/api/objc/ |
RTCIceServer.h | 28 /** Convenience initializer for a server with no authentication (e.g. STUN). */
|
/external/webrtc/webrtc/tools/loopback_test/ |
adapter.js | 70 if (url_parts[0].indexOf('stun') === 0) { 71 // Create iceServer with stun url. 146 if (url_parts[0].indexOf('stun') === 0) { 147 // Create iceServer with stun url.
|
/external/webrtc/talk/app/webrtc/ |
peerconnectionfactory_unittest.cc | 59 static const char kStunIceServer[] = "stun:stun.l.google.com:19302"; 75 static const char kStunIceServerWithIPv4Address[] = "stun:1.2.3.4:1234"; 76 static const char kStunIceServerWithIPv4AddressWithoutPort[] = "stun:1.2.3.4"; 77 static const char kStunIceServerWithIPv6Address[] = "stun:[2401:fa00:4::]:1234"; 79 "stun:[2401:fa00:4::]"; 170 // This test verifies creation of PeerConnection with valid STUN and TURN 190 rtc::SocketAddress stun1("stun.l.google.com", 19302); 203 // This test verifies creation of PeerConnection with valid STUN and TURN 220 rtc::SocketAddress stun1("stun.l.google.com", 19302) [all...] |