Home
last modified time | relevance | path

Searched refs:socket_name (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/ipc/
Dunix_domain_socket_util.cc31 int MakeUnixAddrForPath(const std::string& socket_name, in MakeUnixAddrForPath() argument
37 if (socket_name.length() == 0) { in MakeUnixAddrForPath()
43 if (socket_name.length() >= kMaxSocketNameLength) { in MakeUnixAddrForPath()
44 LOG(ERROR) << "Socket name too long: " << socket_name; in MakeUnixAddrForPath()
64 strncpy(unix_addr->sun_path, socket_name.c_str(), kMaxSocketNameLength); in MakeUnixAddrForPath()
66 offsetof(struct sockaddr_un, sun_path) + socket_name.length(); in MakeUnixAddrForPath()
76 std::string socket_name = socket_path.value(); in CreateServerUnixDomainSocket() local
82 MakeUnixAddrForPath(socket_name, &unix_addr, &unix_addr_len)); in CreateServerUnixDomainSocket()
93 if (unlink(socket_name.c_str()) < 0 && errno != ENOENT) { in CreateServerUnixDomainSocket()
94 PLOG(ERROR) << "unlink " << socket_name; in CreateServerUnixDomainSocket()
[all …]
Dunix_domain_socket_util.h28 IPC_EXPORT bool CreateServerUnixDomainSocket(const base::FilePath& socket_name,
34 IPC_EXPORT bool CreateClientUnixDomainSocket(const base::FilePath& socket_name,
Dipc_channel_posix_unittest.cc220 std::string socket_name("/var/tmp/IPCChannelPosixTest_BasicConnected"); in TEST_F() local
224 IPC::ChannelHandle handle(socket_name, fd); in TEST_F()
235 socket_name, IPC::Channel::MODE_SERVER, NULL)); in TEST_F()
/external/chromium_org/chrome/test/chromedriver/net/
Dadb_client_socket.cc47 const std::string& socket_name, in AdbTransportSocket() argument
51 socket_name_(socket_name), in AdbTransportSocket()
100 const std::string& socket_name, in HttpOverAdbSocket() argument
106 Connect(port, serial, socket_name); in HttpOverAdbSocket()
111 const std::string& socket_name, in HttpOverAdbSocket() argument
117 Connect(port, serial, socket_name); in HttpOverAdbSocket()
126 const std::string& socket_name) { in Connect() argument
128 port, serial, socket_name, in Connect()
315 const std::string& socket_name, in TransportQuery() argument
324 if (!base::StringToInt(socket_name, &tcp_port)) in TransportQuery()
[all …]
Dadb_client_socket.h24 const std::string& socket_name,
29 const std::string& socket_name,
35 const std::string& socket_name,
/external/chromium_org/chrome/browser/devtools/device/
Dandroid_device_manager.h40 std::string socket_name; member
85 void OpenSocket(const std::string& socket_name,
88 void SendJsonRequest(const std::string& socket_name,
92 void HttpUpgrade(const std::string& socket_name,
97 const std::string& socket_name,
136 const std::string& socket_name,
140 const std::string& socket_name,
145 const std::string& socket_name,
Dself_device_provider.cc43 browser_info.socket_name = base::IntToString(port_); in QueryDeviceInfo()
54 const std::string& socket_name, in OpenSocket() argument
61 base::StringToInt(socket_name, &port); in OpenSocket()
Dandroid_device_manager.cc294 const std::string& socket_name, in SendJsonRequest() argument
298 socket_name, in SendJsonRequest()
306 const std::string& socket_name, in HttpUpgrade() argument
311 socket_name, in HttpUpgrade()
339 void AndroidDeviceManager::Device::OpenSocket(const std::string& socket_name, in OpenSocket() argument
346 socket_name, in OpenSocket()
351 const std::string& socket_name, in SendJsonRequest() argument
359 socket_name, in SendJsonRequest()
366 void AndroidDeviceManager::Device::HttpUpgrade(const std::string& socket_name, in HttpUpgrade() argument
374 socket_name, in HttpUpgrade()
Dandroid_web_socket.cc84 const std::string& socket_name,
115 const std::string& socket_name, in AndroidWebSocketImpl() argument
120 socket_name_(socket_name), in AndroidWebSocketImpl()
Dself_device_provider.h21 const std::string& socket_name,
/external/chromium_org/chromecast/shell/browser/devtools/
Dremote_debugging_server.cc38 explicit UnixDomainServerSocketFactory(const std::string& socket_name) in UnixDomainServerSocketFactory() argument
39 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1) {} in UnixDomainServerSocketFactory()
75 std::string socket_name = "content_shell_devtools_remote"; in CreateSocketFactory() local
77 socket_name = command_line->GetSwitchValueASCII( in CreateSocketFactory()
81 new UnixDomainServerSocketFactory(socket_name)); in CreateSocketFactory()
/external/chromium_org/remoting/host/
Dipc_util_posix.cc44 std::string socket_name = "Chromoting socket"; in CreateConnectedIpcChannel() local
48 IPC::ChannelHandle handle(socket_name, fd); in CreateConnectedIpcChannel()
49 *server_out = IPC::ChannelProxy::Create(IPC::ChannelHandle(socket_name, fd), in CreateConnectedIpcChannel()
/external/chromium_org/content/shell/browser/
Dshell_devtools_delegate.cc53 explicit UnixDomainServerSocketFactory(const std::string& socket_name) in UnixDomainServerSocketFactory() argument
54 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1) {} in UnixDomainServerSocketFactory()
90 std::string socket_name = "content_shell_devtools_remote"; in CreateSocketFactory() local
92 socket_name = command_line.GetSwitchValueASCII( in CreateSocketFactory()
96 new UnixDomainServerSocketFactory(socket_name)); in CreateSocketFactory()
/external/chromium_org/chrome/browser/devtools/device/adb/
Dadb_device_provider.cc60 const std::string& socket_name, in OpenSocket() argument
63 base::StringPrintf(kLocalAbstractCommand, socket_name.c_str()); in OpenSocket()
Dadb_client_socket.cc41 const std::string& socket_name, in AdbTransportSocket() argument
45 socket_name_(socket_name), in AdbTransportSocket()
157 const std::string& socket_name, in TransportQuery() argument
159 new AdbTransportSocket(port, serial, socket_name, callback); in TransportQuery()
Dadb_device_provider.h18 const std::string& socket_name,
Dadb_client_socket.h25 const std::string& socket_name,
/external/lldb/include/lldb/Core/
DConnectionFileDescriptor.h93 NamedSocketAccept (const char *socket_name, Error *error_ptr);
96 NamedSocketConnect (const char *socket_name, Error *error_ptr);
/external/chromium_org/android_webview/native/
Daw_dev_tools_server.cc77 explicit UnixDomainServerSocketFactory(const std::string& socket_name) in UnixDomainServerSocketFactory() argument
78 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1) {} in UnixDomainServerSocketFactory()
/external/chromium_org/chrome/browser/android/
Ddev_tools_server.cc143 const std::string& socket_name, in UnixDomainServerSocketFactory() argument
145 : content::DevToolsHttpHandler::ServerSocketFactory(socket_name, 0, 1), in UnixDomainServerSocketFactory()
/external/chromium_org/chrome/browser/devtools/device/usb/
Dusb_device_provider.cc118 std::string socket_name = in OpenSocket() local
120 net::StreamSocket* socket = it->second->CreateSocket(socket_name); in OpenSocket()
Dusb_device_provider.h28 const std::string& socket_name,
/external/chromium_org/tools/android/forwarder2/
Ddaemon.cc127 const std::string& socket_name, in ConnectToUnixDomainSocket() argument
133 if (!socket->ConnectUnix(socket_name)) { in ConnectToUnixDomainSocket()
/external/chromium_org/net/socket/
Dunix_domain_listen_socket_posix_unittest.cc167 base::FilePath GetTempSocketPath(const std::string socket_name) { in GetTempSocketPath() argument
169 return temp_dir_.path().Append(socket_name); in GetTempSocketPath()
/external/lldb/source/Core/
DConnectionFileDescriptor.cpp1116 ConnectionFileDescriptor::NamedSocketAccept (const char *socket_name, Error *error_ptr) in NamedSocketAccept() argument
1132 ::strncpy(saddr_un.sun_path, socket_name, sizeof(saddr_un.sun_path) - 1); in NamedSocketAccept()
1165 ConnectionFileDescriptor::NamedSocketConnect (const char *socket_name, Error *error_ptr) in NamedSocketConnect() argument
1181 ::strncpy(saddr_un.sun_path, socket_name, sizeof(saddr_un.sun_path) - 1); in NamedSocketConnect()

12