Home
last modified time | relevance | path

Searched refs:socket_factory (Results 1 – 20 of 20) sorted by relevance

/external/webrtc/p2p/base/
Dbasic_packet_socket_factory.cc38 SocketFactory* socket_factory) in BasicPacketSocketFactory() argument
39 : thread_(NULL), socket_factory_(socket_factory) {} in BasicPacketSocketFactory()
49 socket_factory()->CreateAsyncSocket(address.family(), SOCK_DGRAM); in CreateUdpSocket()
73 socket_factory()->CreateAsyncSocket(local_address.family(), SOCK_STREAM); in CreateServerTcpSocket()
107 socket_factory()->CreateAsyncSocket(local_address.family(), SOCK_STREAM); in CreateClientTcpSocket()
212 SocketFactory* BasicPacketSocketFactory::socket_factory() { in socket_factory() function in rtc::BasicPacketSocketFactory
Dbasic_packet_socket_factory.h28 explicit BasicPacketSocketFactory(SocketFactory* socket_factory);
53 SocketFactory* socket_factory();
Dport_unittest.cc506 PacketSocketFactory* socket_factory) { in CreateUdpPort() argument
507 return UDPPort::Create(&main_, socket_factory, MakeNetwork(addr), 0, 0, in CreateUdpPort()
515 PacketSocketFactory* socket_factory) { in CreateTcpPort() argument
516 return TCPPort::Create(&main_, socket_factory, MakeNetwork(addr), 0, 0, in CreateTcpPort()
533 PacketSocketFactory* socket_factory, in CreateTurnPort() argument
538 return CreateTurnPort(addr, socket_factory, int_proto, ext_proto, in CreateTurnPort()
543 PacketSocketFactory* socket_factory, in CreateTurnPort() argument
547 return TurnPort::Create(&main_, socket_factory, MakeNetwork(addr), 0, 0, in CreateTurnPort()
1491 FakePacketSocketFactory socket_factory; in TEST_F() local
1493 socket_factory.set_next_udp_socket(socket); in TEST_F()
[all …]
Dtcp_port.cc293 socket_ = socket_factory()->CreateServerTcpSocket( in TryCreateServerSocket()
568 socket_.reset(port()->socket_factory()->CreateClientTcpSocket( in CreateOutgoingTcpSocket()
Dstun_port.cc218 socket_ = socket_factory()->CreateUdpSocket( in Init()
435 resolver_.reset(new AddressResolver(socket_factory())); in ResolveStunAddress()
Dport.h214 rtc::PacketSocketFactory* socket_factory() const { return factory_; } in socket_factory() function
Dturn_port.cc386 socket_ = socket_factory()->CreateUdpSocket( in CreateTurnClientSocket()
408 socket_ = socket_factory()->CreateClientTcpSocket( in CreateTurnClientSocket()
800 resolver_ = socket_factory()->CreateAsyncResolver(); in ResolveTurnAddress()
/external/grpc-grpc/src/core/lib/iomgr/
Dudp_server.cc169 grpc_socket_factory* socket_factory; member
213 s->socket_factory = get_socket_factory(args); in grpc_udp_server_create()
214 if (s->socket_factory) { in grpc_udp_server_create()
215 grpc_socket_factory_ref(s->socket_factory); in grpc_udp_server_create()
256 if (s->socket_factory) { in finish_shutdown()
257 grpc_socket_factory_unref(s->socket_factory); in finish_shutdown()
346 static int bind_socket(grpc_socket_factory* socket_factory, int sockfd, in bind_socket() argument
348 return (socket_factory != nullptr) in bind_socket()
349 ? grpc_socket_factory_bind(socket_factory, sockfd, addr) in bind_socket()
357 static int prepare_socket(grpc_socket_factory* socket_factory, int fd, in prepare_socket() argument
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dudp_server.cc170 grpc_socket_factory* socket_factory; member
213 s->socket_factory = get_socket_factory(args); in grpc_udp_server_create()
214 if (s->socket_factory) { in grpc_udp_server_create()
215 grpc_socket_factory_ref(s->socket_factory); in grpc_udp_server_create()
257 if (s->socket_factory) { in finish_shutdown()
258 grpc_socket_factory_unref(s->socket_factory); in finish_shutdown()
347 static int bind_socket(grpc_socket_factory* socket_factory, int sockfd, in bind_socket() argument
349 return (socket_factory != nullptr) in bind_socket()
350 ? grpc_socket_factory_bind(socket_factory, sockfd, addr) in bind_socket()
358 static int prepare_socket(grpc_socket_factory* socket_factory, int fd, in prepare_socket() argument
[all …]
/external/webrtc/p2p/stunprober/
Dstun_prober_unittest.cc57 void StartProbing(rtc::PacketSocketFactory* socket_factory, in StartProbing() argument
64 new StunProber(socket_factory, rtc::Thread::Current(), networks)); in StartProbing()
85 std::unique_ptr<rtc::BasicPacketSocketFactory> socket_factory( in RunProber() local
98 StartProbing(socket_factory.get(), addrs, networks, shared_mode, 3, in RunProber()
Dstun_prober.h100 StunProber(rtc::PacketSocketFactory* socket_factory,
Dstun_prober.cc256 StunProber::StunProber(rtc::PacketSocketFactory* socket_factory, in StunProber() argument
260 socket_factory_(socket_factory), in StunProber()
/external/grpc-grpc/test/core/iomgr/
Dudp_server_test.cc238 test_socket_factory* socket_factory = test_socket_factory_create(); in test_no_op_with_port_and_socket_factory() local
240 grpc_socket_factory_to_arg(&socket_factory->base); in test_no_op_with_port_and_socket_factory()
254 GPR_ASSERT(socket_factory->number_of_socket_calls == g_num_listeners); in test_no_op_with_port_and_socket_factory()
255 GPR_ASSERT(socket_factory->number_of_bind_calls == g_num_listeners); in test_no_op_with_port_and_socket_factory()
259 grpc_socket_factory_unref(&socket_factory->base); in test_no_op_with_port_and_socket_factory()
/external/webrtc/p2p/client/
Dturn_port_factory.cc27 args.network_thread, args.socket_factory, args.network, udp_socket, in Create()
40 args.network_thread, args.socket_factory, args.network, min_port, in Create()
Dbasic_port_allocator.h34 rtc::PacketSocketFactory* socket_factory,
41 rtc::PacketSocketFactory* socket_factory,
59 rtc::PacketSocketFactory* socket_factory() { in socket_factory() function
121 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } in socket_factory() function
Dbasic_port_allocator.cc156 rtc::PacketSocketFactory* socket_factory, in BasicPortAllocator() argument
159 : network_manager_(network_manager), socket_factory_(socket_factory) { in BasicPortAllocator()
182 rtc::PacketSocketFactory* socket_factory, in BasicPortAllocator() argument
184 : network_manager_(network_manager), socket_factory_(socket_factory) { in BasicPortAllocator()
266 socket_factory_(allocator->socket_factory()), in BasicPortAllocatorSession()
1237 udp_socket_.reset(session_->socket_factory()->CreateUdpSocket( in Init()
1408 session_->network_thread(), session_->socket_factory(), network_, in CreateUDPPorts()
1414 session_->network_thread(), session_->socket_factory(), network_, in CreateUDPPorts()
1450 session_->network_thread(), session_->socket_factory(), network_, in CreateTCPPorts()
1478 session_->network_thread(), session_->socket_factory(), network_, in CreateStunPorts()
[all …]
Drelay_port_factory_interface.h40 rtc::PacketSocketFactory* socket_factory; member
/external/webrtc/examples/stunprober/
Dmain.cc126 std::unique_ptr<rtc::BasicPacketSocketFactory> socket_factory( in main() local
133 new StunProber(socket_factory.get(), rtc::Thread::Current(), networks); in main()
/external/webrtc/rtc_base/
DBUILD.gn717 rtc_source_set("socket_factory") {
721 # "socket_factory.h",
893 "socket_factory.h",
/external/webrtc/android_tools/
Dsorted_targets.txt24944 "//rtc_base/socket_factory.h",